Пример #1
0
        public ActionResult TabExample()
        {
            TabExample.Services.tabTextService serv = new TabExample.Services.tabTextService ();
            tabViewModel myModel = serv.getTabViewModel();

            return View(myModel);
        }
Пример #2
0
        public ActionResult getAjaxTab(int id)
        {
            string viewName = string.Empty;

            TabExample.Services.tabTextService serv = new TabExample.Services.tabTextService();
            tabViewModel myModel = serv.getTabViewModel();

            switch (id)
            {
            case 1:
                viewName = "_tab1";
                break;

            case 2:
                viewName = "_tab2";
                break;

            case 3:
                viewName = "_tab3";
                break;

            case 4:
                viewName = "_error";
                break;
            }

            System.Threading.Thread.Sleep(1000);

            return(PartialView(viewName, myModel));
        }
Пример #3
0
        public ActionResult getAjaxTab(int id)
        {
            string viewName = string.Empty;

            TabExample.Services.tabTextService serv = new TabExample.Services.tabTextService();
            tabViewModel myModel = serv.getTabViewModel();

            switch (id)
            {
                case 1:
                    viewName = "_tab1";
                    break;
                case 2:
                    viewName = "_tab2";
                    break;
                case 3:
                    viewName = "_tab3";
                    break;
                case 4:
                    viewName = "_error";
                    break;
            }

            System.Threading.Thread.Sleep(1000);

            return PartialView(viewName, myModel);
        }
Пример #4
0
        public ActionResult TabExample()
        {
            TabExample.Services.tabTextService serv = new TabExample.Services.tabTextService();
            tabViewModel myModel = serv.getTabViewModel();

            return(View(myModel));
        }