public ActionResult editor(string id) { dynamic eo = new ExpandoObject(); Service.Model.Blog blog = BlogService.Get(id); if (blog == null) blog = new Service.Model.Blog(); eo.Blog = blog; eo.SelectedCategories = BlogService.GetBlogSelectedCategory(id); eo.Categories = BlogService.ListCategories(); return View(eo); }
public ActionResult editor(string id) { dynamic eo = new ExpandoObject(); Service.Model.Blog blog = BlogService.Get(id); if (blog == null) { blog = new Service.Model.Blog(); } eo.Blog = blog; eo.SelectedCategories = BlogService.GetBlogSelectedCategory(id); eo.Categories = BlogService.ListCategories(); return(View(eo)); }