public async Task <IActionResult> PutStudyContent(Guid id, StudyContent studyContent) { if (id != studyContent.GUID) { return(BadRequest()); } _context.Entry(studyContent).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!StudyContentExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }