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

            return(View(categories));
        }
Exemplo n.º 2
0
 public CategoryController() : this(CategoryServiceFactory.Create())
 {
 }