예제 #1
0
 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;
 }
예제 #2
0
 public ActionResult RegisterStudent(RegisterStudentViewModel model)
 {
     if (!ModelState.IsValid)
     {
         return View(model);
     }
     else
         return FinishResigration(new RegisterViewModel(model));
 }
예제 #3
0
 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;
 }