public ActionResult PostList() { CountDTO countDTO = new CountDTO(); countDTO = bll.GetAllCounts(); ViewData["AllCounts"] = countDTO; List <PostDTO> postList = new List <PostDTO>(); postList = bll.GetPosts(); return(View(postList)); }
public ActionResult PostList() { CountDTO countDTO = new CountDTO(); countDTO = bll.GetAllCounts(); ViewData["AllCounts"] = countDTO; List <PostDTO> postList = new List <PostDTO>(); postList = bll.GetPosts(); return(View(postList)); }