Esempio n. 1
0
        public IActionResult Contract(UsersContractModel model)
        {
            model.AcceptContract(ModelState.AddModelError);

            if (ModelState.IsValid)
            {
                return(RedirectToAction("Index", "Accounts"));
            }

            return(View(model));
        }
Esempio n. 2
0
        public IActionResult Contract()
        {
            var model = new UsersContractModel();

            return(View(model));
        }