Пример #1
0
        public IEnumerable <LeaveTypeDTO> GetSpecialLeaveType()
        {
            IEnumerable <LeaveType>    Record       = _unitOfWork.LeaveTypeRepository.Get(x => x.LeaveType1 == "Special").ToList();
            IEnumerable <LeaveTypeDTO> ReturnRecord = LeaveTypeResponseFormatter.ModelData(Record);

            return(ReturnRecord);
        }
Пример #2
0
        public IEnumerable <LeaveTypeDTO> GetLeaveTypes()
        {
            IEnumerable <LeaveType> modelDatas = _unitOfWork.LeaveTypeRepository.All();

            return(LeaveTypeResponseFormatter.ModelData(modelDatas));
        }