Esempio n. 1
0
        public ActionResult Read(string id)
        {
            var contentLinks = _links.List();
            var pageData = _contents.Get(id);
            var viewModel = new ReadViewModel(contentLinks, pageData, id);

            return View(viewModel);
        }
Esempio n. 2
0
        public ActionResult Index(string id)
        {
            if (string.IsNullOrEmpty(id))
                id = "sdt00_99.htm";

            //            return RedirectToAction("Read", "Home", new {id = "sdt00_99.htm"});

            var contentLinks = _links.List();
            var pageData = _contents.Get(id);
            var viewModel = new ReadViewModel(contentLinks, pageData, id);

            return View(viewModel);
        }