よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
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))); }