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

            return(Ok(dates));
        }
Ejemplo n.º 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));
        }