public ActionResult Blogs() { IBlogView myBlogView = new BlogView(); myBlogView.Entries = BlogService.GetRows(null, Url.Content(IMAGE_PATH)).OrderByDescending(p => p.DateCreated); return View(myBlogView); }
public ActionResult BlogList() { IBlogView myBlogView = new BlogView(); myBlogView.Entries = BlogService.GetRows(null).OrderByDescending(p => p.DateCreated); return View(myBlogView); }
public ActionResult Delete_List(BlogEntry entry = null) { if (entry.CRUD) { BlogService.Delete(entry); return new RedirectResult("~//Home/Blogs"); } else { IBlogView myBlogView = new BlogView(); myBlogView.Entries = BlogService.GetRows(null, IMAGE_PATH).OrderByDescending(p => p.DateCreated); return View(myBlogView); } }
public ActionResult Update_List() { ServiceManager myManager = new ServiceManager(); IBlogView myBlogView = new BlogView(); myBlogView.Entries = BlogService.GetRows(null, IMAGE_PATH).OrderByDescending(p => p.DateCreated); return View(myBlogView); }