Skip to content

BehzadDara/BehzadDara.BaseResult

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BehzadDara.BaseResult

NuGet License

Overview

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.

Features

  • 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)

Usage

Example Usage

For detailed examples on how to use the BaseResult class and its methods, please refer to the Sample usage section of the repository.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions, feedback, and suggestions are welcome! If you'd like to contribute to BehzadDara.BaseResult, please open an issue or submit a pull request.

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages