Exemple #1
0
 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));
        }
Exemple #3
0
 private async void UpdateTsmSetupsCount()
 {
     TsmSetupsCount = (await TheSetupMarketApiProvider.GetAvailableSetups(Id))?.Count;
 }