Just add the ToListAsync
extension to your database call and change the Get
method signature to so that it can await the returned value.
public async Task<IActionResult> Get()
{
var myList= await db.PowerBox.CircuitCurrents.X().ToListAsync();
return new JsonResult(new { data = myList });
}