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

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

            return(new JsonResult(result));
        }
Ejemplo 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));
        }