public async Task <ActionResult <ProductListQueryViewModel> > List(ProductListQuery query)
 {
     return(CreatedAtAction("List Product", await MediatorService.ExecuteHandler(query)));
 }
 public async Task <ActionResult <CategoryListQueryViewModel> > List(CategoryListQuery query)
 {
     return(CreatedAtAction("List Category", await MediatorService.ExecuteHandler(query)));
 }
Exemple #3
0
        public async Task <ActionResult> Insert(ProductInsertCommand command)
        {
            await MediatorService.ExecuteHandler(command);

            return(NoContent());
        }