public async Task <IActionResult> Put(TableTrace tableTrace) { _context.Entry(tableTrace).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <IActionResult> Post(TableTrace tableTrace) { _context.Add(tableTrace); await _context.SaveChangesAsync(); return(Ok(tableTrace.Id)); }
public async Task <IActionResult> Delete(int id) { var dev = new TableTrace { Id = id }; _context.Remove(dev); await _context.SaveChangesAsync(); return(NoContent()); }