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> GetCandidateTimesheetCategoriesHours(long Id) { try { tblCandidateTimesheetCategoriesHour res = await Task.Run(() => ManageCandidateTimesheetCategoriesHours.GetCandidateTimesheetCategoriesHours(Id)); return(res.ConvertToCandidateTimesheetCategoriesHoursViewModel()); } catch (Exception ex) { throw; } }