public async Task <ViewResult> CarsSync() { SampleAPIClient client = new SampleAPIClient(); var cars = await client.GetCarsInAWrongWayAsync(); return(View("Index", model: cars)); }
public ViewResult CarsSync() { SampleAPIClient client = new SampleAPIClient(); var cars = client.GetCarsAsync().Result; return(View("Index", model: cars)); }