Esempio n. 1
0
 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)));
 }