public IActionResult SignUp(string Username, string UserPassword, string UserEmail) { if (userDb.SignUp(new User(Username, UserPassword, UserEmail))) { ViewData["Msg"] = "User Created, Re-directing to Home Page"; return(View("../Home/Index")); } else { ViewData["Msg"] = "The email address you entered is already registered!"; return(View("../Home/Index")); } }
private static void SignUpMenu() { System.Console.WriteLine("Sign-up Menu"); System.Console.WriteLine("------------"); System.Console.Write("Enter Username: "******"Enter Password: "******"Enter Email Address: "); string email = System.Console.ReadLine(); UserDataMgt userDMgt = new UserDataMgt(); if (userDMgt.SignUp(new User(username, password, email))) { System.Console.WriteLine("User Created, Re-directing to Main Screen"); } else { System.Console.WriteLine("Issue in creating user account, re-try latter"); } }