AzRUtil.Web.Api 10.3.0

dotnet add package AzRUtil.Web.Api --version 10.3.0
                    
NuGet\Install-Package AzRUtil.Web.Api -Version 10.3.0
                    
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="AzRUtil.Web.Api" Version="10.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzRUtil.Web.Api" Version="10.3.0" />
                    
Directory.Packages.props
<PackageReference Include="AzRUtil.Web.Api" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AzRUtil.Web.Api --version 10.3.0
                    
#r "nuget: AzRUtil.Web.Api, 10.3.0"
                    
#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.
#:package AzRUtil.Web.Api@10.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AzRUtil.Web.Api&version=10.3.0
                    
Install as a Cake Addin
#tool nuget:?package=AzRUtil.Web.Api&version=10.3.0
                    
Install as a Cake Tool

AzRUtil.Web.Api

ASP.NET Core Web API utilities with standardized responses, validation, and base controller.

NuGet Version License

?? Installation

dotnet add package AzRUtil.Web.Api

Or via Package Manager:

Install-Package AzRUtil.Web.Api

?? Target Framework

  • .NET 10

? Features

  • Base API Controller - Standardized response methods
  • API Response Models - Consistent JSON responses
  • Validation Filters - Model state validation
  • Pagination Support - X.PagedList integration
  • Error Handling - Structured error responses
  • RDLC Reports - Report generation (when combined with Web.Rdlc)

?? Dependencies

Package Version
AzRUtil.Web 10.1.1
X.PagedList 10.5.9

?? Quick Start

using AzRUtil.Web.Api;

[ApiController]
[Route("api/[controller]")]
public class ProductsController : BaseApiController
{
    [HttpGet]
    public IActionResult GetAll()
    {
        var products = _service.GetAll();
        return OkResult(products, "Products retrieved successfully");
    }
    
    [HttpGet("{id}")]
    public IActionResult GetById(int id)
    {
        var product = _service.GetById(id);
        if (product == null)
            return ErrorResult("Product not found", 404);
        
        return OkResult(product);
    }
    
    [HttpPost]
    public IActionResult Create([FromBody] ProductDto model)
    {
        if (!ModelState.IsValid)
            return ValidationResult(ModelState);
        
        try
        {
            var result = _service.Create(model);
            return OkResult(result, "Product created successfully");
        }
        catch (Exception ex)
        {
            return ExceptionResult(ex);
        }
    }
}

API Response Format

{
    "isError": false,
    "responseStatus": "success",
    "responseCode": 200,
    "responseGroup": "success",
    "message": "Data retrieved successfully",
    "data": { ... }
}

Available Response Methods

Method Description
OkResult(data, message) Success response with data
OkResult(pagedList, message) Paginated success response
ValidationResult(modelState) Validation error response
UnauthorizedResult(message) 401/403 error response
ErrorResult(message) Client error response
FailedResult(data, message) Server error response
ExceptionResult(exception) Exception response with logging

?? Documentation

For full API documentation, visit: http://ashiquzzaman.me/project/AzRUtil.Web.Library

?? License

PROPRIETARY SOFTWARE - See LICENSE.txt

  • ? You may use the compiled NuGet package
  • ? You may NOT access, copy, or use source code
  • ? No warranty or guarantee provided
  • ? No liability accepted for any damages

?? Contact

For licensing inquiries: ashiquzzaman@outlook.com


� Ashiquzzaman. All Rights Reserved.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.3.0 89 2/24/2026
10.2.0 130 1/8/2026
10.1.1 105 1/8/2026
10.1.0 117 1/2/2026
8.0.1 307 3/2/2024
7.0.1 480 1/14/2023
6.1.5 434 1/14/2023
6.1.3 611 8/23/2022
6.1.2 546 8/22/2022
6.1.1 537 8/18/2022
6.1.0 567 8/14/2022

Web API utilities with standardized response handling.