Table of Contents

Class CustomersController

Namespace
KadicErp.WebApi.Controllers.RentACar
Assembly
KadicErp.WebApi.dll
[ApiController]
[Route("api/rent-a-car/customers")]
[Authorize]
[RequireModule("RENT_A_CAR")]
public class CustomersController : ControllerBase
Inheritance
object
ControllerBase
CustomersController

Constructors

CustomersController(IMediator)

public CustomersController(IMediator mediator)

Parameters

mediator IMediator

Methods

GetClassification(Guid, CancellationToken)

[HttpGet("{customerId:guid}/classification")]
[Authorize(Policy = "RENTACAR_CUSTOMERS_CLASSIFICATION_VIEW")]
[ProducesResponseType(typeof(CustomerClassificationDto), 200)]
public Task<IActionResult> GetClassification(Guid customerId, CancellationToken cancellationToken = default)

Parameters

customerId Guid
cancellationToken CancellationToken

Returns

Task<IActionResult>

GetClientsWithRentalStage(Guid?, bool?, int, int, string?, string?, CancellationToken)

[HttpGet("rental-stage")]
[Authorize(Policy = "RENTACAR_CUSTOMERS_RENTAL_STAGE_VIEW")]
[ProducesResponseType(typeof(ClientWithRentalStagePaginatedDto), 200)]
public Task<IActionResult> GetClientsWithRentalStage(Guid? branchId = null, bool? includeCancelled = false, int pageNumber = 1, int pageSize = 10, string? searchTerm = null, string? filterStatus = null, CancellationToken cancellationToken = default)

Parameters

branchId Guid?
includeCancelled bool?
pageNumber int
pageSize int
searchTerm string
filterStatus string
cancellationToken CancellationToken

Returns

Task<IActionResult>