public void Alterar(Anuncio anuncio) { _webAnuncieAquiContext.Entry <Anuncio>(anuncio).State = Microsoft.EntityFrameworkCore.EntityState.Modified; _webAnuncieAquiContext.SaveChanges(); }
public void Alterar(Venda venda) { _webAnuncieAquiContext.Entry <Venda>(venda).State = Microsoft.EntityFrameworkCore.EntityState.Modified; _webAnuncieAquiContext.SaveChanges(); }