Пример #1
0
        public ResultMenus GetMenus(string username)
        {
            ResultMenus result  = new ResultMenus();
            var         pAction = new ExecuteProcess();

            try
            {
                result = new NTS.WEB.BLL.MenuTree().GetMenus(username);
                if (result != null)
                {
                    pAction.Success   = true;
                    result.ActionInfo = pAction;
                    return(result);
                }
                else
                {
                    pAction.Success      = false;
                    pAction.ExceptionMsg = "暂无数据信息";
                    result.ActionInfo    = pAction;
                    return(result);
                }
            }
            catch (Exception e)
            {
                pAction.Success      = false;
                pAction.ExceptionMsg = e.Message;
                result.ActionInfo    = pAction;
                return(result);
            }
        }
Пример #2
0
 public ResultMenus GetMenus(string username)
 {
     ResultMenus result = new ResultMenus();
     var pAction = new ExecuteProcess();
     try
     {
         result = new NTS.WEB.BLL.MenuTree().GetMenus(username);
         if (result != null)
         {
             pAction.Success = true;
             result.ActionInfo = pAction;
             return result;
         }
         else
         {
             pAction.Success = false;
             pAction.ExceptionMsg = "暂无数据信息";
             result.ActionInfo = pAction;
             return result;
         }
     }
     catch (Exception e)
     {
         pAction.Success = false;
         pAction.ExceptionMsg = e.Message;
         result.ActionInfo = pAction;
         return result;
     }
 }