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