コード例 #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));
        }