Exemple #1
0
        public async Task <CandidateTimesheetCategoriesHoursViewModel> CreateCandidateTimesheetCategoriesHours(CandidateTimesheetCategoriesHoursViewModel data)
        {
            try
            {
                tblCandidateTimesheetCategoriesHour res = await Task.Run(() => ManageCandidateTimesheetCategoriesHours.InsertCandidateTimesheetCategoriesHours(data.ConvertTotblCandidateTimesheetCategoriesHour()));

                return(res.ConvertToCandidateTimesheetCategoriesHoursViewModel());
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #2
0
        public async Task <CandidateTimesheetCategoriesHoursViewModel> UpdateCandidateTimesheetCategoriesHours(CandidateTimesheetCategoriesHoursViewModel data)
        {
            try
            {
                await Task.Run(() => ManageCandidateTimesheetCategoriesHours.UpdateCandidateTimesheetCategoriesHours(data.ConvertTotblCandidateTimesheetCategoriesHour()));

                return(data);
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #3
0
        public async Task <CandidateTimesheetCategoriesHoursViewModel> GetCandidateTimesheetCategoriesHours(long Id)
        {
            try
            {
                tblCandidateTimesheetCategoriesHour res = await Task.Run(() => ManageCandidateTimesheetCategoriesHours.GetCandidateTimesheetCategoriesHours(Id));

                return(res.ConvertToCandidateTimesheetCategoriesHoursViewModel());
            }
            catch (Exception ex)
            {
                throw;
            }
        }