Beispiel #1
0
 public IActionResult DeleteBucket([FromBody] StringDto bucketName) =>
 _bucketService.DeleteBucket(Request.Headers["token"], bucketName)
 .Map((x) => AllOk(x))
 .Reduce(NotFoundErrorHandler, x => x is NotFoundError)
 .Reduce(InternalServisErrorHandler);