public IHttpActionResult GetLastEmpCalcsMethod(EmpAssignDatesVm model) { if (model == null) { return(BadRequest()); } var dates = hrUnitOfWork.LeaveRepository.GetLastEmpCalcsMethod(model.CompanyId, model.EmpId); return(Ok(dates)); }
public IHttpActionResult GetEmpAssignDates(EmpAssignDatesVm model) { if (model == null) { return(BadRequest()); } var dates = hrUnitOfWork.LeaveRepository.GetEmpAssignDates(model.CompanyId, model.EmpId); if (dates == null) { return(NotFound()); } return(Ok(dates)); }