public ActionResult DeleteConfirmed(int id)
        {
            RegistroLivro registro = _registroRepository.GetRegistroPorID(id);

            _registroRepository.Remover(registro);
            _registroRepository.Salvar();
            return(RedirectToAction("List"));
        }
Пример #2
0
 public async Task Remover(Guid id)
 {
     await _registroRepository.Remover(id);
 }