public IActionResult Index(Journey journey) { var emailObj = TempDataHelper.Get(Statics.EmailTempData); TempDataHelper.Remove(Statics.EmailTempData); string password = journey.Password; journey = _wrapper.GetJourney(emailObj); journey.Password = password; journey.CurrentPage = "About You"; if (!journey.Registered) { var user = new User(journey.Email, 0, DateTime.Now, DateTime.Now, Guid.NewGuid()) { PrimaryEmail = journey.Email, CurrentPassword = journey.Password }; _wrapper.RegisterUser(user); journey.Registered = true; _wrapper.PutJourney(journey); } return(View(journey)); }