Beispiel #1
0
 public IActionResult DownloadFile([FromBody] StringDto fileName) =>
 _bucketService.DownloadFile(Request.Headers["token"], fileName)
 .Map((x) => (IActionResult)File(x.File, x.Type, x.Value))
 .Reduce(NotFoundErrorHandler, x => x is NotFoundError)
 .Reduce(InternalServisErrorHandler);