Пример #1
0
 public ActionResult Save(EditViewModel userToSave)
 {
     if (ModelState.IsValid && ValidateUser(userToSave))
     {
         usersRepository.SaveUser(userToSave.ConvertEditViewModelToUser(rolesRepository));
         return RedirectToAction("List");
     }
     else
     {
         return View("Edit");
     }
 }