public RegisterViewModel(RegisterExternalViewModel reg) { Email = reg.Email; UserGroup = reg.UserGroup; UserGroupName = reg.UserGroupName; Password = reg.Password; ConfirmPassword = reg.ConfirmPassword; FirstName = reg.FirstName; MiddleName = reg.MiddleName; LastName = reg.LastName; CardNumber = reg.CardNumber; PhoneNumber = reg.PhoneNumber; }
public ActionResult RegisterExternal(RegisterExternalViewModel model) { if (!ModelState.IsValid) { return View(model); } else return FinishResigration(new RegisterViewModel(model)); }