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