Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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));
        }