using GB5Shared.DTO.Framework.Login; using RecruitmentDAL.DTO.InterviewScorecard; using System.Data.Common; using System.Threading; using System.Threading.Tasks; namespace RecruitmentDAL.CustomeCode.InterviewScorecard { public interface IInterviewScorecardDAL { #region InterviewScorecard Task GetInterviewScorecard(int InterviewScorecardId, LoginDTO LoginDTO, CancellationToken ct); Task GetInterviewScorecardByInterview(int InterviewId, LoginDTO LoginDTO, CancellationToken ct); // Transactional write overloads — called from BaseEntityAppService.ExecuteSaveAsync's // persistFunc so the save participates in the single pipeline transaction. Task SaveInterviewScorecard(InterviewScorecardDTO InterviewScorecardDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task UpdateInterviewScorecard(InterviewScorecardDTO InterviewScorecardDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task DeleteInterviewScorecard(int InterviewScorecardId, LoginDTO LoginDTO, CancellationToken ct); #endregion #region InterviewScorecardDetail Task GetInterviewScorecardDetail(int InterviewScorecardDetailId, LoginDTO LoginDTO, CancellationToken ct); Task GetInterviewScorecardDetailByScorecard(int InterviewScorecardId, LoginDTO LoginDTO, CancellationToken ct); Task SaveInterviewScorecardDetail(InterviewScorecardDetailDTO InterviewScorecardDetailDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task UpdateInterviewScorecardDetail(InterviewScorecardDetailDTO InterviewScorecardDetailDTO, LoginDTO LoginDTO, DbTransaction tx, CancellationToken ct); Task DeleteInterviewScorecardDetail(int InterviewScorecardDetailId, LoginDTO LoginDTO, CancellationToken ct); #endregion } }