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

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