public ActionResult Profile(string id) { var user = new ReyditContext().Users.Where(o => o.Username.ToLower() == id.ToLower()).FirstOrDefault(); return(View(user)); }
// GET: Home public ActionResult Index() { var rc = new ReyditContext(); return(View(rc.Posts.ToList())); }
public ActionResult Index(string sort) { var subs = new ReyditContext().Subreydits.ToList(); return(View(subs)); }