Exemplo n.º 1
0
        public JsonResult OnPostCreate(CreateProductCategory command)
        {
            var result = _productCategoryApplication.Create(command);

            return(new JsonResult(result));
            //return RedirectToPage("./Index");
        }
Exemplo n.º 2
0
        public JsonResult OnPostCreate(CreateProductCategory command)
        {
            var result = _productCategoryApplication.Create(command);

            return(new JsonResult(result));
        }
Exemplo n.º 3
0
 public IActionResult OnPost(CreateProductCategory command)
 {
     _productCategoryApplication.Create(command);
     return(RedirectToPage("Index"));
 }
        public JsonResult OnPostCreate(ProductCategoryCreate create)
        {
            var result = _productCategoryApplication.Create(create);

            return(new JsonResult(result));
        }