예제 #1
0
        public async Task <CandidateTimesheetHoursViewModel> CreateCandidateTimesheetHours(CandidateTimesheetHoursViewModel data)
        {
            try
            {
                tblCandidateTimesheetHour res = await Task.Run(() => ManageCandidateTimesheetHours.InsertCandidateTimesheetHours(data.ConvertTotblCandidateTimesheetHour()));

                return(res.ConvertToCandidateTimesheetHoursViewModel());
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #2
0
        public async Task <CandidateTimesheetHoursViewModel> UpdateCandidateTimesheetHours(CandidateTimesheetHoursViewModel data)
        {
            try
            {
                await Task.Run(() => ManageCandidateTimesheetHours.UpdateCandidateTimesheetHours(data.ConvertTotblCandidateTimesheetHour()));

                return(data);
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #3
0
        public async Task <CandidateTimesheetHoursViewModel> GetCandidateTimesheetHours(long Id)
        {
            try
            {
                tblCandidateTimesheetHour res = await Task.Run(() => ManageCandidateTimesheetHours.GetCandidateTimesheetHours(Id));

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