Example #1
0
        public void Excluir(int id)
        {
            try
            {
                Morador morador = ObterPorId(id);

                if (morador != null)
                {
                    _condominioDbContext.Morador.Remove(morador);
                    _condominioDbContext.SaveChanges();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Example #2
0
 public int SaveChanges()
 {
     return(_Context.SaveChanges());
 }