public void Edit(Lista entidade) { if (entidade != null) { _db.Entry(entidade).State = EntityState.Modified; _db.SaveChanges(); } }