public ActionResult ProcessSignUp(Customer customer) { SecurityDAO security = new SecurityDAO(); bool exists = security.Ifexist(customer); if (exists) { ViewData["exists"] = customer.Name; return(View("Login")); } else { security.CreateUser(customer); return(View("LoginSuccess", customer)); } }