Exemplo n.º 1
0
 public IActionResult UploadFile([FromForm] UploadFileDto uploadFile) =>
 _bucketService.UploadFile(Request.Headers["token"], uploadFile)
 .Map((x) => AllOk(x))
 .Reduce(NotFoundErrorHandler, x => x is NotFoundError)
 .Reduce(InternalServisErrorHandler);