public ActionResult SubmitRegistration(SignupModel model) { string viewName = "Signup"; AccountConnection accountConnection = new AccountConnection(); if (ModelState.IsValid) { SignupRequest request = ConvertSignUpModel(model); accountConnection.AddUser(request); viewName = "Login"; } return(View(viewName)); }