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
-
objectControllerBaseCustomersController
Constructors
CustomersController(IMediator)
public CustomersController(IMediator mediator)
Parameters
mediatorIMediator
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
customerIdGuidcancellationTokenCancellationToken
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
branchIdGuid?includeCancelledbool?pageNumberintpageSizeintsearchTermstringfilterStatusstringcancellationTokenCancellationToken
Returns
- Task<IActionResult>