Exemplo n.º 1
0
        public async Task <ActionResult> Index(string slug)
        {
            var page = await _pages.GetPageViewBySlug(slug);

            if (page == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            return(View(page));
        }