public async Task <IHttpActionResult> GetDevices() { var response = await _api.GetDevices(); var devicesCover = JsonConvert.DeserializeObject <DevicesCover>(response); var report = new DevicesResponseDto { Devices = new List <Device>() }; foreach (var device in devicesCover.Devices) { report.Devices.Add(JsonConvert.DeserializeObject <Device>(Convert.ToString(device))); } return(Ok(report)); }