public async Task <ActionResult> EditSysRole(SysRoleViewModel model) { if (ModelState.IsValid) { var sysRoleService = new SysRoleService(); await sysRoleService.EditSysRole(model.Id, model.RoleName, model.SortOrder); } return(RedirectToAction(nameof(SysRoleList))); }