예제 #1
0
        public ActionResult Create()
        {
            //Get the list category
            var listCategory = _blogCategoryService.GetBlogCategories().ToSelectListItems(-1);
            var blog         = new BlogFormModel {
                ListCategory = listCategory
            };

            return(View(blog));
        }
예제 #2
0
        // GET: Admin/BlogCategory
        public ActionResult Index()
        {
            var list = _blogCategoryService.GetBlogCategories();

            return(View(model: list));
        }