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)); }
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)); }