Exemple #1
0
 public static IEnumerable <AttachmentType> GetValidAttachmentTypesForForms(this ProjectUpdateBatch projectUpdateBatch)
 {
     return(projectUpdateBatch.GetAllAttachmentTypes().Where(x => !x.NumberOfAllowedAttachments.HasValue || (x.ProjectAttachmentUpdates.Where(pau => pau.ProjectUpdateBatchID == projectUpdateBatch.ProjectUpdateBatchID).ToList().Count < x.NumberOfAllowedAttachments)));
 }