Ejemplo n.º 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;
            }
        }
Ejemplo n.º 2
0
        public async Task <CandidateTimesheetCategoriesHoursViewModel> UpdateCandidateTimesheetCategoriesHours(CandidateTimesheetCategoriesHoursViewModel data)
        {
            try
            {
                await Task.Run(() => ManageCandidateTimesheetCategoriesHours.UpdateCandidateTimesheetCategoriesHours(data.ConvertTotblCandidateTimesheetCategoriesHour()));

                return(data);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 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;
            }
        }