Table of Contents

Class CustomersController

Namespace
KadicErp.WebApi.Controllers.RentACar
Assembly
KadicErp.WebApi.dll
[ApiController]
[Route("api/rent-a-car/customers")]
[Authorize]
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?, CancellationToken)

[HttpGet("rental-stage")]
[Authorize(Policy = "RENTACAR_CUSTOMERS_RENTAL_STAGE_VIEW")]
[ProducesResponseType(typeof(IReadOnlyList<ClientWithRentalStageDto>), 200)]
public Task<IActionResult> GetClientsWithRentalStage(Guid? branchId = null, bool? includeCancelled = false, CancellationToken cancellationToken = default)

Parameters

branchId Guid?
includeCancelled bool?
cancellationToken CancellationToken

Returns

Task<IActionResult>