public async Task <IEnumerable <ProductQueryResponseModel> > Handle(GetAllProductQueryRequestModel request, CancellationToken cancellationToken) { return(await _productService.GetAllProductAsync()); }
public async Task <IEnumerable <ProductQueryResponseModel> > Get() { GetAllProductQueryRequestModel request = new GetAllProductQueryRequestModel(); return(await _mediator.Send(request)); }