public ActionResult Checkout(string email) { if (email == null) { return(RedirectToAction("SignIn")); } CustomerModel customerModel = musicRepo.GetPersonByEmail(email); if (customerModel != null) { ViewBag.message = "Returning Customer: Please review shipping information"; } else { ViewBag.message = "New Customer: Please enter shipping information"; customerModel = new CustomerModel(); customerModel.Email = email; } ViewBag.title = "Checkout"; return(View(customerModel)); }