Exemple #1
0
 public FileMetadataCollection GetFilesMetadataForUser(User user)
 {
     return
         (new FileMetadataCollection(from fileMetadata in _filesRepository.GetFilesMetadataForUserId(user.UserId)
                                     select
                                     new FileMetadata
     {
         Data = fileMetadata.LastDateChanged,
         Description = fileMetadata.Description,
         FileName = fileMetadata.FileName,
         FileType = fileMetadata.FileType,
         Id = fileMetadata.Id,
         UserId = fileMetadata.UserId
     }));
 }