Skip to content

ASP.NET Integration

Plug REslava.Result into your web stack – Minimal API, MVC, and everything in between.

  • OneOf to IResult Convert OneOf<T1,...> to HTTP responses in one call — status codes from error types.

  • Minimal API Result.ToIResult(), HTTP method variants (ToPostResult, ToPutResult, ToDeleteResult).

  • MVC — Result Result.ToActionResult() – convention‑based MVC controllers.

  • MVC — OneOf OneOf.ToActionResult() – multi-case MVC responses.

  • Smart HTTP Mapping Automatic HTTP status code selection from error types.

  • Problem Details RFC 7807 compliant error responses via [MapToProblemDetails].

  • HTTP Client Wrap HttpClient calls so every response and network failure becomes a typed Result<T>.