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