public async Task <IActionResult> PutCareVolunteerEntity(int id, CareVolunteerEntity careVolunteerEntity) { if (id != careVolunteerEntity.ID) { return(BadRequest()); } _context.Entry(careVolunteerEntity).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CareVolunteerEntityExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }