コード例 #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"));
 }
コード例 #4
0
        public JsonResult OnPostCreate(ProductCategoryCreate create)
        {
            var result = _productCategoryApplication.Create(create);

            return(new JsonResult(result));
        }