using RecruitmentDAL.DTO.JobProfile; using GB5Shared.DTO.Framework.Criteria; using GB5Shared.DTO.Framework.Login; using System.Data.Common; using System.Threading; using System.Threading.Tasks; namespace RecruitmentDAL.CustomeCode.JobProfile { public interface IJobProfileDAL { #region JobProfile Task GetJobProfile(int JobProfileId, LoginDTO LoginDTO, CancellationToken ct); Task GetSelectListJobProfile(CriteriaDTO CriteriaDTO, LoginDTO LoginDTO, CancellationToken ct); // Transactional write overloads — called from BaseEntityAppService.ExecuteSaveAsync's // persistFunc so the save participates in the single pipeline transaction. Task SaveJobProfile(JobProfileDTO JobProfileDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task UpdateJobProfile(JobProfileDTO JobProfileDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task DeleteJobProfile(int JobProfileId, LoginDTO LoginDTO, CancellationToken ct); #endregion #region JobProfileDetail Task GetJobProfileDetail(int JobProfileDetailId, LoginDTO LoginDTO, CancellationToken ct); Task GetSelectListJobProfileDetail(CriteriaDTO CriteriaDTO, LoginDTO LoginDTO, CancellationToken ct); Task SaveJobProfileDetail(JobProfileDetailDTO JobProfileDetailDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task UpdateJobProfileDetail(JobProfileDetailDTO JobProfileDetailDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task DeleteJobProfileDetail(int JobProfileDetailId, LoginDTO LoginDTO, CancellationToken ct); #endregion } }