Exemplo n.º 1
0
 public IActionResult DeleteFile([FromBody] StringDto fileName) =>
 _bucketService.DeleteFile(Request.Headers["token"], fileName)
 .Map((x) => AllOk(x))
 .Reduce(NotFoundErrorHandler, x => x is NotFoundError)
 .Reduce(InternalServisErrorHandler);