示例#1
0
        public async Task <CandidateTimesheetViewModel> UpdateCandidateTimesheet(CandidateTimesheetViewModel data)
        {
            try
            {
                await Task.Run(() => ManageCandidateTimesheets.UpdateCandidateTimesheet(data.ConvertTotblCandidateTimesheet()));

                return(data);
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#2
0
        public async Task <CandidateTimesheetViewModel> GetTimesheetDetailsById(long TimesheetId)
        {
            try
            {
                tblCandidateTimesheet res = await Task.Run(() => ManageCandidateTimesheets.GetTimesheetDetailsById(TimesheetId));

                return(res.ConvertToCandidateTimesheetViewModel());
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#3
0
        public async Task <CandidateTimesheetViewModel> CreateCandidateTimesheet(CandidateTimesheetViewModel data)
        {
            try
            {
                tblCandidateTimesheet res = await Task.Run(() => ManageCandidateTimesheets.InsertCandidateTimesheet(data.ConvertTotblCandidateTimesheet()));

                return(res.ConvertToCandidateTimesheetViewModel());
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#4
0
        public async Task <CandidateTimesheetViewModel> GetCandidateTimesheetDetails(long placementId, long payPeriodId)
        {
            try
            {
                tblCandidateTimesheet res = await Task.Run(() => ManageCandidateTimesheets.GetCandidateTimesheet(placementId, payPeriodId));

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