Exemple #1
0
        public ActionResult Profile(string id)
        {
            var user = new ReyditContext().Users.Where(o => o.Username.ToLower() == id.ToLower()).FirstOrDefault();

            return(View(user));
        }
Exemple #2
0
        // GET: Home
        public ActionResult Index()
        {
            var rc = new ReyditContext();

            return(View(rc.Posts.ToList()));
        }
Exemple #3
0
        public ActionResult Index(string sort)
        {
            var subs = new ReyditContext().Subreydits.ToList();

            return(View(subs));
        }