Пример #1
0
 public IActionResult Index(Contact contact)
 {
     if (ModelState.IsValid)
     {
         repository.AddContact(contact);
     }
     return(RedirectToAction("Index", "Home"));
 }