Exemplo n.º 1
0
 public IActionResult Index(New news)
 {
     if (ModelState.IsValid)
     {
         _newRepository.AddNew(news);
         return(RedirectToAction("AddNewComplete"));
     }
     return(View());
 }