Ejemplo n.º 1
0
        public ActionResult Index()
        {
            List <PDA> p = PDA.GetEntitysAllMore();

            PDAParam param = PDAParam.GetEntityByID(1);

            if (CurrentUser.UserName == WeConfig.robot)
            {
                ViewData["ss"] = "显示";
            }
            else
            {
                ViewData["ss"] = "隐藏";
            }

            ViewBag.Param = param;

            return(View(p));
        }