public async Task <IActionResult> GetImdbAll() { var result = await _serieService.GetImdbAll(); var series = JsonSerializer.Serialize(result.Data, new JsonSerializerOptions { ReferenceHandler = ReferenceHandler.Preserve }); return(Json(series)); }