コード例 #1
0
        public ActionResult Index()
        {
            cms_manager mng = new cms_manager();


            UserPhone = mng.getUserPhone();

            ViewModelUserCabinet model = new ViewModelUserCabinet();


            model.controllerLink = mng.getLoginPartialLinks().controllerLink;
            model.actionLink     = mng.getLoginPartialLinks().actionLink;
            model.UserPhone      = UserPhone;

            return(View(model));
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: Romix2017/taxi
        public ActionResult Index()
        {
            ViewModelHome model = new ViewModelHome();
            cms_manager   mng   = new cms_manager();

            model.isAuthenticated = IsAuthenticated;

            if (IsAuthenticated)
            {
                model.userPhone = mng.getUserPhone();

                model.controllerLink = mng.getLoginPartialLinks().controllerLink;
                model.actionLink     = mng.getLoginPartialLinks().actionLink;
            }


            return(View(model));
        }