Beispiel #1
0
        public async Task <ActionResult> Index()
        {
            var url = await _pages.GetMainPageSlug();

            if (string.IsNullOrEmpty(url))
            {
                return(View());
            }
            return(RedirectToAction("Index", "Pages", new { slug = url }));
        }