Table of Contents

Class RentCarBranchScheduleEventController

Namespace
KadicErp.WebApi.Controllers.RentACar
Assembly
KadicErp.WebApi.dll
[ApiController]
[Route("api/rentcar/branches/{branchId:guid}/schedule-events")]
[Authorize]
[RequireModule("RENT_A_CAR")]
public class RentCarBranchScheduleEventController : ControllerBase
Inheritance
object
ControllerBase
RentCarBranchScheduleEventController

Constructors

RentCarBranchScheduleEventController(ISender)

public RentCarBranchScheduleEventController(ISender sender)

Parameters

sender ISender

Methods

Create(Guid, CreateBranchScheduleEventCommand, CancellationToken)

[HttpPost]
[Authorize(Policy = "RENTACAR_BRANCH_SCHEDULE_EVENTS_CREATE")]
public Task<IActionResult> Create(Guid branchId, CreateBranchScheduleEventCommand command, CancellationToken cancellationToken)

Parameters

branchId Guid
command CreateBranchScheduleEventCommand
cancellationToken CancellationToken

Returns

Task<IActionResult>

Delete(Guid, Guid, CancellationToken)

[HttpDelete("{id:guid}")]
[Authorize(Policy = "RENTACAR_BRANCH_SCHEDULE_EVENTS_DELETE")]
public Task<IActionResult> Delete(Guid branchId, Guid id, CancellationToken cancellationToken)

Parameters

branchId Guid
id Guid
cancellationToken CancellationToken

Returns

Task<IActionResult>

GetByBranch(Guid, CancellationToken)

[HttpGet]
[Authorize(Policy = "RENTACAR_BRANCH_SCHEDULE_EVENTS_VIEW")]
public Task<IActionResult> GetByBranch(Guid branchId, CancellationToken cancellationToken)

Parameters

branchId Guid
cancellationToken CancellationToken

Returns

Task<IActionResult>