// GET: Post public ActionResult Index() { using (var db = new DbUsersEntities()) { Posts posts = new Posts(); posts.SessionUser = (users1)Session["Users"]; Session["TopBar"] = 2; posts.AddFriends(2); return(View(posts.GetPosts())); } }
// GET: Post public ActionResult Index() { using (var db = new DbUsersEntities()) { Posts posts = new Posts(); posts.SessionUser = (users1)Session["Users"]; Session["TopBar"] = 2; posts.AddFriends(2); return(View(posts.GetPosts())); } }