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