Ejemplo n.º 1
0
        public virtual ActionResult IndexCategory(string slug)
        {
            var category = _context.FindCategoryBySlug(slug);

            if (category == null)
            {
                return(HttpNotFound());
            }

            return(View(Views.IndexCategory, category));
        }