コード例 #1
0
        public void AddNewFileResource(FileResource fileResource, string displayName, string description)
        {
            var grantAllocationFileResource =
                new GrantAllocationFileResource(this, fileResource, displayName)
            {
                Description = description
            };

            GrantAllocationFileResources.Add(grantAllocationFileResource);
        }
 public static void DeleteGrantAllocationFileResource(this IQueryable <GrantAllocationFileResource> grantAllocationFileResources, GrantAllocationFileResource grantAllocationFileResourceToDelete)
 {
     DeleteGrantAllocationFileResource(grantAllocationFileResources, new List <GrantAllocationFileResource> {
         grantAllocationFileResourceToDelete
     });
 }