public IEnumerable <LeaveTypeDTO> GetSpecialLeaveType() { IEnumerable <LeaveType> Record = _unitOfWork.LeaveTypeRepository.Get(x => x.LeaveType1 == "Special").ToList(); IEnumerable <LeaveTypeDTO> ReturnRecord = LeaveTypeResponseFormatter.ModelData(Record); return(ReturnRecord); }
public IEnumerable <LeaveTypeDTO> GetLeaveTypes() { IEnumerable <LeaveType> modelDatas = _unitOfWork.LeaveTypeRepository.All(); return(LeaveTypeResponseFormatter.ModelData(modelDatas)); }