public async Task <IActionResult> PutApplicationLog(int id, ApplicationLog applicationLog) { if (id != applicationLog.Id) { return(BadRequest()); } _context.Entry(applicationLog).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ApplicationLogExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutTrackedItem(int id, TrackedItem trackedItem) { if (id != trackedItem.Id) { return(BadRequest()); } _context.Entry(trackedItem).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TrackedItemExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }