public Meditation PutMeditationInfo(int id, [FromBody] Meditation meditation) { _context.Entry(meditation).State = EntityState.Modified; _context.SaveChanges(); return(meditation); }
public Meditation PostNewMeditation([FromBody] Meditation meditation) { _context.meditationEntries.Add(meditation); _context.SaveChanges(); return(meditation); }