[HttpPost] // PUT
 public ActionResult Edit(RegistroLivro registro)
 {
     try
     {
         if (ModelState.IsValid)
         {
             _registroRepository.Atualiza(registro);
             return(RedirectToAction("List"));
         }
     }
     catch (DataException)
     {
         ModelState.AddModelError("", "Não foi possível salvar as mudanças. Tente novamente.....");
     }
     return(View(registro));
 }