// GET: Admin //[Authorize(Roles = "Admin")] public ActionResult Index() { var manager = new BlogManager(); var response = manager.GetAllApprovedPosts(); return View(response.Data); }
// GET: Owner public ActionResult Index() { var manager = new BlogManager(); var data = manager.GetAllApprovedPosts().Data; return View(data); }