public void Excluir(int id) { try { Morador morador = ObterPorId(id); if (morador != null) { _condominioDbContext.Morador.Remove(morador); _condominioDbContext.SaveChanges(); } } catch (Exception ex) { throw ex; } }
public int SaveChanges() { return(_Context.SaveChanges()); }