public ActionResult Delete(int id, Participante collection) { try { // TODO: Add delete logic here _participanteRepository.Remover(collection); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public async Task Remover(Guid id) { await _ParticipanteRepository.Remover(id); }
public void Remover(Participante entity) { _participanteRository.Remover(entity); }