Example #1
0
 public IActionResult Edit(Cargo cargo)
 {
     if (ModelState.IsValid)
     {
         if (_cargoDAO.Editar(cargo))
         {
             return(RedirectToAction(nameof(Index)));
         }
         ModelState.AddModelError("", "Esse Cargo ja Existe!");
     }
     return(View(cargo));
 }