public IEnumerable <DocumentType> GetDocumentTypes(Expression <Func <DocumentType, bool> > where = null) { if (where == null) { return(_documentTypeRepository.GetMany()); } return(_documentTypeRepository.GetMany(where)); }
public IEnumerable <DocumentType> GetNotFillDocumentType(long userID, DateTime date) { var fillDocumentTypeIds = _documentTypeRepository .GetFillDocumentTypes(userID, date) .Select(dt => dt.DocumentTypeID); var notFillDocTypes = _documentTypeRepository.GetMany(dt => !fillDocumentTypeIds.Contains(dt.DocumentTypeID)); return(notFillDocTypes); }