private async Task FilterAsync() { if (Brand == null && Type == null) { return; } IsBusy = true; // Filter catalog products MessagingCenter.Send(this, MessageKeys.Filter); Products = await _productsService.FilterAsync(Brand.Id, Type.Id); IsBusy = false; }
private async Task FilterAsync() { if (System.String.IsNullOrEmpty(ProductFilter)) { return; } IsBusy = true; // Filter catalog products MessagingCenter.Send(this, MessageKeys.Filter); Products = await _productsService.FilterAsync(ProductFilter); IsBusy = false; }