public ActionResult Index() { IUrlFriendlyService <Category> service = CategoryServiceFactory.Create(); IEnumerable <Category> categories = service.Get(); return(View(categories)); }
public CategoryController() : this(CategoryServiceFactory.Create()) { }