ResultFluent.Mvc
1.0.7
.NET 5.0
.NET Core 3.0
.NET Framework 4.7
dotnet add package ResultFluent.Mvc --version 1.0.7
NuGet\Install-Package ResultFluent.Mvc -Version 1.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ResultFluent.Mvc" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ResultFluent.Mvc --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ResultFluent.Mvc, 1.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ResultFluent.Mvc as a Cake Addin
#addin nuget:?package=ResultFluent.Mvc&version=1.0.7
// Install ResultFluent.Mvc as a Cake Tool
#tool nuget:?package=ResultFluent.Mvc&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FluentResult.Mvc
This is a MVC extensions methods for returning an HttpAction from Result.
You can install ResultFluent.Mvc with NuGet:
dotnet add package ResultFluent.Mvc
Use
// using FluentResult;
/// <summary>Gets an item by id.</summary>
/// <response code="200">Gets an item by id successfully.</response>
/// <response code="400">Id is invalid.</response>
/// <response code="404">Item is not found.</response>
[HttpGet]
[ProducesResponseType(typeof(Result<Item>), StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
public Task<IActionResult> GetItemByIdAsync([Required] int id) =>
_itemsService.GetItemByIdAsync(id).ToActionResultAsync(this);
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp3.0 netcoreapp3.1 |
.NET Framework | net47 net471 net472 net48 net481 |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.0
- ResultFluent (>= 1.0.7)
-
.NETFramework 4.7
- Microsoft.AspNet.WebApi.Core (>= 5.2.7)
- ResultFluent (>= 1.0.7)
-
net5.0
- ResultFluent (>= 1.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.