public IActionResult Contract(UsersContractModel model) { model.AcceptContract(ModelState.AddModelError); if (ModelState.IsValid) { return(RedirectToAction("Index", "Accounts")); } return(View(model)); }
public IActionResult Contract() { var model = new UsersContractModel(); return(View(model)); }