Beispiel #1
0
 public async Task <GridFSDownloadStream <ObjectId> > DownloadAsyncAsStreamById(string id)
 {
     try
     {
         ObjectId _id = ObjectId.Parse(id);
         return(await repository.DownloadAsync(_id));
     }
     catch (Exception ex)
     {
         Serilog.Log.Error(ex.Message);
         return(null);
     }
 }