Example #1
0
        public IActionResult OnPostEdit(EditRoleVM command)
        {
            if (!ModelState.IsValid)
            {
                return(RedirectToPage("Index"));
            }
            var result = _roleApplication.Edit(command);

            return(new JsonResult(result));
        }
Example #2
0
        public IActionResult OnPost(EditRole command)
        {
            var result = _roleApplication.Edit(command);

            return(RedirectToPage("Index"));
        }
Example #3
0
        public JsonResult OnPostEdit(EditRole command)
        {
            var result = _roleApplication.Edit(command);

            return(new JsonResult(result));
        }
Example #4
0
 public IActionResult OnPost(/*EditRole command*/)
 {
     _roleApplication.Edit(Role);
     return(RedirectToPage("Index"));
 }