public async Task <ActionResult <ResponsesGetDto <CategoryDto> > > AllCategory([FromQuery] FromQueryModel queryModel, CancellationToken cancellationToken) { return(Ok(await Mediator.Send(new GetAllCategoryQuery { Pagination = queryModel.Pagination }, cancellationToken))); }
public async Task <ActionResult <ResponsesGetDto <DiscountDto> > > AllArtcile([FromQuery] FromQueryModel queryModel, CancellationToken cancellationToken) { return(Ok(await Mediator.Send(new GetAllDiscountQuery { Pagination = queryModel.Pagination }, cancellationToken))); }