public async Task <CandidateTimesheetCategoriesHoursViewModel> CreateCandidateTimesheetCategoriesHours(CandidateTimesheetCategoriesHoursViewModel data) { try { tblCandidateTimesheetCategoriesHour res = await Task.Run(() => ManageCandidateTimesheetCategoriesHours.InsertCandidateTimesheetCategoriesHours(data.ConvertTotblCandidateTimesheetCategoriesHour())); return(res.ConvertToCandidateTimesheetCategoriesHoursViewModel()); } catch (Exception) { throw; } }
public async Task <CandidateTimesheetCategoriesHoursViewModel> UpdateCandidateTimesheetCategoriesHours(CandidateTimesheetCategoriesHoursViewModel data) { try { await Task.Run(() => ManageCandidateTimesheetCategoriesHours.UpdateCandidateTimesheetCategoriesHours(data.ConvertTotblCandidateTimesheetCategoriesHour())); return(data); } catch (Exception) { throw; } }
public async Task <CandidateTimesheetCategoriesHoursViewModel> GetCandidateTimesheetCategoriesHours(long Id) { try { tblCandidateTimesheetCategoriesHour res = await Task.Run(() => ManageCandidateTimesheetCategoriesHours.GetCandidateTimesheetCategoriesHours(Id)); return(res.ConvertToCandidateTimesheetCategoriesHoursViewModel()); } catch (Exception ex) { throw; } }