public ActionResult Create(long userAccountId) { UserAccountModel userAccountModel = new UserAccountModel(); userAccountModel.UserAccount = ServiceLocator.UserInformationService.GetUserAccountById(userAccountId); userAccountModel.PersonalData = new PersonalData(); userAccountModel.Address = new Address(); return View(userAccountModel); }
public ActionResult Create(long userAccountId, UserAccountModel model) { ServiceLocator.AuthorizationService.SaveNewUserPersonalData(userAccountId, model.PersonalData, model.Address); return RedirectToAction("Index", "Logging"); }