示例#1
0
        public IHttpActionResult GetLastEmpCalcsMethod(EmpAssignDatesVm model)
        {
            if (model == null)
            {
                return(BadRequest());
            }
            var dates = hrUnitOfWork.LeaveRepository.GetLastEmpCalcsMethod(model.CompanyId, model.EmpId);

            return(Ok(dates));
        }
示例#2
0
        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));
        }