public ActionResult Create() { //Get the list category var listCategory = _blogCategoryService.GetBlogCategories().ToSelectListItems(-1); var blog = new BlogFormModel { ListCategory = listCategory }; return(View(blog)); }
// GET: Admin/BlogCategory public ActionResult Index() { var list = _blogCategoryService.GetBlogCategories(); return(View(model: list)); }