R
RzR
Guest
Web Result
is based on the simple implementation of Result
(AggregatedGenericResultMessage). The entire implementation is like a wrapper to be used within a web project, which will be able to an easy-to-understand, structured, and filtered response as needed to be returned to the client.Everything can start by inheriting the methods from
ResultBaseApiController
which returns a response of the type IActionResult
and as HTTP codes 200, 204, or 400. IResult
or IResult<T>
is used as an input parameter, thus checking which code the response should be returned to the client.Another way of using it is by using methods that extend the
I/Result
and I/Result<T>
functionalities from the ToActionResult
class, but which as a final result return ActionResult
via ObjectResult
, thus diversifying the way of use and offering opportunities and levers for easy integration into other solutions.GitHub source:
I-RzR-I / AggregatedGenericResultMessage-Web
This library is an aggregate of some extensions to use more comfortable `Result lib`. In other words, transform from `Result` to `IActionResult`.
Note This repository is developed using .netstandard2.1.
The important thing about this repository is to offer the possibility to manage and organize your result/response from infrastructure to user/controller, as the principal repository around which are built all extensions is
AggregatedGenericResultMessage
.In case you wish to use it in your project, u can install the package from nuget.org or specify what version you want:
Install-Package AggregatedGenericResultMessage.Web -Version x.x.x.x
Content
View on GitHub
Refer links:
ResultBaseApiController
: https://github.com/I-RzR-I/Aggregat...icResultMessage.Web/ResultBaseApiController.cToActionResult
: https://github.com/I-RzR-I/Aggregat...ericResultMessage.Web/Extensions/ActionResultContinue reading...