Exemplo n.º 1
0
 public IEnumerable <DocumentType> GetDocumentTypes(Expression <Func <DocumentType, bool> > where = null)
 {
     if (where == null)
     {
         return(_documentTypeRepository.GetMany());
     }
     return(_documentTypeRepository.GetMany(where));
 }
Exemplo n.º 2
0
        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);
        }