Exemplo n.º 1
0
 public IActionResult EditNews(News model)
 {
     if (ModelState.IsValid)
     {
         artRepository.SaveNews(model);
         return(RedirectToAction("Add"));
     }
     return(View(model));
 }