diff --git a/AIParkingApplication/Statistic.cs b/AIParkingApplication/Statistic.cs index a9189f7..b2b1c06 100644 --- a/AIParkingApplication/Statistic.cs +++ b/AIParkingApplication/Statistic.cs @@ -44,19 +44,19 @@ namespace AIParkingApplication HttpResponseMessage response = await client.GetAsync("/api/statistics"); response.EnsureSuccessStatusCode(); var vehicle = await response.Content.ReadAsAsync(); - lblSoLuongXeMay?.Invoke(new Action(() => + lblSoLuongXeMay.Invoke(new Action(() => { lblSoLuongXeMay.Text = vehicle.NumberOfMoto.ToString(); })); - lblSoLuongOto?.Invoke(new Action(() => + lblSoLuongOto.Invoke(new Action(() => { lblSoLuongOto.Text = vehicle.NumberOfCar.ToString(); })); - lblVehicleTotalIn?.Invoke(new Action(() => + lblVehicleTotalIn.Invoke(new Action(() => { lblVehicleTotalIn.Text = vehicle.TotalIn; })); - lblVehicleTotalOut?.Invoke(new Action(() => + lblVehicleTotalOut.Invoke(new Action(() => { lblVehicleTotalOut.Text = vehicle.TotelOut; }));