Пример #1
0
        public ActionResult Create(PersonModel person)
        {
            if (ModelState.IsValid)
            {
                birthdays.Persons.Add(person);
                birthdays.SaveChanges();

                return(RedirectToAction("Index"));
            }

            else
            {
                //
            }

            return(View());
        }