private async Task CastTrips() { var a = await _tripController.GetAllTrips() as OkObjectResult; Trips = a?.Value as IList <Trip>; }