Exemplo n.º 1
0
        public ActionResult dispatcher()
        {
            cms_manager mng = new cms_manager();


            string       currentUserRole = mng.getCurrentUserRoles();
            ViewModelCms localModel      = new ViewModelCms();

            localModel.position       = currentUserRole;
            localModel.controllerLink = mng.getLoginPartialLinks().controllerLink;
            localModel.actionLink     = mng.getLoginPartialLinks().actionLink;
            return(View(localModel));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
0
        public ActionResult driver()
        {
            cms_manager mng = new cms_manager();


            string       currentUserRole = mng.getCurrentUserRoles();
            ViewModelCms localModel      = new ViewModelCms();

            localModel.position = currentUserRole;

            localModel.controllerLink = mng.getLoginPartialLinks().controllerLink;
            localModel.actionLink     = mng.getLoginPartialLinks().actionLink;


            localModel.driverID = HttpContext.User.Identity.GetUserId();

            return(View(localModel));
        }
Exemplo n.º 4
0
        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));
        }