public JsonResult AuthInfos(string loginName) { var r1 = userRoleService.GetUserInfo(loginName); var roleIds = r1.RoleInfos.Select(x => x.RoleId).ToArray(); var r2 = roleNavService.RoleNavList(roleIds); var r3 = userBizService.GetBizsByLoginName2(loginName); var result = new VAuthDetails { UserInfo = r1, vNavs = r2, vBizs = r3 }; return(new JsonResult(result)); }