public bool signUp(User u, Credentials c) { bool valid = false; UserDaoImpl userDao = new UserDaoImpl(); userDao.createUser(u); if (true) { userDao.createCredentials(c); if (true) { Credentials creds = c; valid = true; Session["StartTime"] = DateTime.UtcNow; Session["Name"] = userEmailTxt.Text; Session["Admin"] = "No"; Response.Redirect("Profile.aspx"); } } return valid; }
public bool signUp(User u, Credentials c) { bool valid = false; userDao = new UserDaoImpl(); if (userDao.createUser(u)) { User = u; if (userDao.createCredentials(c)) { Credentials = c; valid = true; } } return valid; }