Пример #1
0
        public JsonResult OnPostCreate(CreateProductCategory command)
        {
            var result = _productCategoryApplication.Create(command);

            return(new JsonResult(result));
            //return RedirectToPage("./Index");
        }
Пример #2
0
        public JsonResult OnPostCreate(CreateProductCategory command)
        {
            var result = _productCategoryApplication.Create(command);

            return(new JsonResult(result));
        }
Пример #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));
        }