public ActionResult AboutUs(int clientId, AboutUsRequest aboutUs) { if (ModelState.IsValid) { var client = _db.ClientInfoModels.SingleOrDefault(x => x.Id == clientId); if (client != null) { client.Interests = new ClientInterestsModel { GettingStarted = aboutUs.GettingStarted, WrappingItUp = aboutUs.WrappingItUp, DayOfCoordination = aboutUs.DayOfCoordination, LiteCoordination = aboutUs.LiteCoordination, FullServiceCoordination = aboutUs.FullServiceCoordination, CandyBuffet = aboutUs.CandyBuffet, SignUp = aboutUs.SignUp, PriceList = aboutUs.PriceList, AdditionalQuestions = aboutUs.AdditionalQuestions }; _db.SaveChanges(); return RedirectToAction("ScheduleConsultation", new { clientId }); } } return View(aboutUs); }
public ActionResult AboutUs(int clientId) { var client = _db.ClientInfoModels.SingleOrDefault(x => x.Id == clientId); if (client != null) { var aboutUs = new AboutUsRequest { GettingStarted = client.Interests.GettingStarted, WrappingItUp = client.Interests.WrappingItUp, DayOfCoordination = client.Interests.DayOfCoordination, LiteCoordination = client.Interests.LiteCoordination, FullServiceCoordination = client.Interests.FullServiceCoordination, CandyBuffet = client.Interests.CandyBuffet, SignUp = client.Interests.SignUp, PriceList = client.Interests.PriceList, AdditionalQuestions = client.Interests.AdditionalQuestions, }; return View(aboutUs); } return View(); }