public AnnualLeaveRequestCRUDModel Update(AnnualLeaveRequestCRUDModel model) { var annnualLeaveRequestOverviewModel = new AnnualLeaveRequestOverviewModel() { AnnualLeaveRequestID = model.AnnualLeaveRequestID, Year = model.Year, PaidLeaveType = model.PaidLeaveType, LeaveType = model.LeaveType, StartDate = model.StartDate, ReturnDate = model.ReturnDate, Notes = model.Notes, }; var updateAnnnualLeaveRequestOverviewModel = _annualLeaveRequestDataAccess.Update(annnualLeaveRequestOverviewModel); return(new AnnualLeaveRequestCRUDModel() { AnnualLeaveRequestID = updateAnnnualLeaveRequestOverviewModel.AnnualLeaveRequestID, Year = updateAnnnualLeaveRequestOverviewModel.Year, PaidLeaveType = updateAnnnualLeaveRequestOverviewModel.PaidLeaveType, LeaveType = updateAnnnualLeaveRequestOverviewModel.LeaveType, StartDate = updateAnnnualLeaveRequestOverviewModel.StartDate, ReturnDate = updateAnnnualLeaveRequestOverviewModel.ReturnDate, Notes = updateAnnnualLeaveRequestOverviewModel.Notes, ErrorMessage = updateAnnnualLeaveRequestOverviewModel.ErrorMessage, }); }
public AnnualLeaveRequestOverviewModel Update(AnnualLeaveRequestOverviewModel model) { return(_annualLeaveRequestDataAccess.Update(model)); }