public async Task <CandidateTimesheetViewModel> GetTimesheetDetailsById(long TimesheetId) { try { tblCandidateTimesheet res = await Task.Run(() => ManageCandidateTimesheets.GetTimesheetDetailsById(TimesheetId)); return(res.ConvertToCandidateTimesheetViewModel()); } catch (Exception ex) { throw; } }
public async Task <CandidateTimesheetViewModel> CreateCandidateTimesheet(CandidateTimesheetViewModel data) { try { tblCandidateTimesheet res = await Task.Run(() => ManageCandidateTimesheets.InsertCandidateTimesheet(data.ConvertTotblCandidateTimesheet())); return(res.ConvertToCandidateTimesheetViewModel()); } catch (Exception) { throw; } }
public async Task <CandidateTimesheetViewModel> GetCandidateTimesheetDetails(long placementId, long payPeriodId) { try { tblCandidateTimesheet res = await Task.Run(() => ManageCandidateTimesheets.GetCandidateTimesheet(placementId, payPeriodId)); return(res.ConvertToCandidateTimesheetViewModel()); } catch (Exception ex) { throw; } }