public async Task <IActionResult> PutAPODItem(long id, APODItem aPODItem) { if (id != aPODItem.Id) { return(BadRequest()); } _context.Entry(aPODItem).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!APODItemExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }