public void Atualiza(Post post) { contexto.Entry(post).State = EntityState.Modified; contexto.SaveChanges(); }