예제 #1
0
 public ActionResult Register(UserViewModel model)
 {
     if (ModelState.IsValid)
     {
         _logics.Register(model);
         return RedirectToAction("Index", "Home");
     }
     return View();
 }
예제 #2
0
 public void Register(UserViewModel user)
 {
     Mapper.CreateMap<UserViewModel, UserDTO>();
     _service.RegisterUser(Mapper.Map<UserDTO>(user));
 }