public void Post([FromBody] Audio audio) { _engieContext.Audios.Add(audio); _engieContext.Entry(audio).State = EntityState.Added; _engieContext.SaveChanges(); }
public void Adicionar([FromBody] Comando Comando) { _engieContext.Comandos.Add(Comando); _engieContext.Entry(Comando).State = EntityState.Added; _engieContext.SaveChanges(); }