public async Task <IActionResult> PutAsync(int id, [FromBody] Genre value) { var changedResult = await _service.ChangeAsync(id, value.GenreName); if (!changedResult) { return(StatusCode((int)HttpStatusCode.InternalServerError, "Failed to insert entity.")); } return(Ok()); }