public ActionResult Delete(int id, Membro collection) { try { // TODO: Add delete logic here _membroRepository.Remover(collection); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public void Remover(Membro entity) { _membroRepository.Remover(entity); }