public static async Task <TheSetupMarketAsManager> CreateAsync(CarObject car) { return(new TheSetupMarketAsManager(car.Id, await TheSetupMarketApiProvider.GetAvailableSetups(car.Id).ConfigureAwait(false))); }
public static async Task <TheSetupMarketAsManager> CreateAsync(CarObject car) { var data = await TheSetupMarketApiProvider.GetAvailableSetups(car.Id); return(data == null ? null : new TheSetupMarketAsManager(car.Id, data)); }
private async void UpdateTsmSetupsCount() { TsmSetupsCount = (await TheSetupMarketApiProvider.GetAvailableSetups(Id))?.Count; }