public async Task <ActionResult> SetButtons(long roleId) { ViewBag.RoleId = roleId; var model = await SysMenuSvc.GetRole2MenuListAsync(roleId); return(PartialView(model)); }
public async Task <ActionResult> SetMenus(long id) { ViewBag.RoleId = id; var data = await SysMenuSvc.GetJsonListAsync(id); return(PartialView("SetMenus", JsonConvert.SerializeObject(data))); }