BehzadDara.BaseResult is a NuGet package designed to simplify the handling of results in .NET applications by implementing a consistent result pattern. It provides a robust way to represent success and failure scenarios, making it easier to manage responses in your APIs.
- Result Handling: A unified way to handle success and failure outcomes.
- Generic Output: Easily manage the value returned from operations.
- HTTP Status Code Management: Built-in methods for handling various HTTP status codes, including:
- 200 (OK)
- 204 (No Content)
- 308 (Permanent Redirect)
- 400 (Bad Request)
- 401 (Unauthorized)
- 403 (Forbidden)
- 404 (Not Found)
- 405 (Method Not Allowed)
- 409 (Conflict)
- 429 (Too Many Requests)
- 500 (Internal Server Error)
- 501 (Not Implemented)
For detailed examples on how to use the BaseResult
class and its methods, please refer to the Sample usage section of the repository.
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions, feedback, and suggestions are welcome! If you'd like to contribute to BehzadDara.BaseResult, please open an issue or submit a pull request.
- NuGet Package: BehzadDara.BaseResult
- GitHub Repository: BehzadDara.BaseResult