Пример #1
0
        public ActionResult Create(CrudModel crudModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(crudModel));
            }

            crudRepo.AddPerson(crudModel);
            return(RedirectToAction("Index"));
        }