示例#1
0
        public void TestGetAdminUserMenu2()
        {
            UserMenuService   service   = new UserMenuService();
            UserMenuViewModel ViewModel = service.GetAdminMenuViewModel("aa");

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
示例#2
0
 /// <summary>
 /// 默认或者管理员关联的菜单
 /// </summary>
 /// <returns>返回:系统中所以用户;当前登录管理员关联菜单</returns>
 public object Get()
 {
     try
     {
         string userName = User.Identity.Name;
         return(service.GetAdminMenuViewModel(userName));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }