Esempio n. 1
0
        public async Task <IActionResult> Register(Member m)
        {
            await MemberDB.Add(_context, m);

            SessionHelper.LogUserIn(_httpAccessor, m.MemberID, m.Username);

            TempData["Message"]       = "The registration thing that you just did was a HUGE success. Go you.";
            TempData["MessageHeader"] = "You're registered!";

            //How you redirect to another page!!
            return(RedirectToAction("Index", "Home"));
        }