Example #1
0
        public ActionResult Index()
        {
            IUrlFriendlyService <Category> service    = CategoryServiceFactory.Create();
            IEnumerable <Category>         categories = service.Get();

            return(View(categories));
        }
Example #2
0
 public CategoryController() : this(CategoryServiceFactory.Create())
 {
 }