public async Task Load(Data.Model.CarService cs) { CarServiceName = cs.CarServiceName; var _ServicesList = await _ServicesService.Get <List <Data.Model.Services> >(new ServicesSearchRequest() { CarServiceID = cs.CarServiceID }); ServicesList.Clear(); foreach (var s in _ServicesList) { ServicesList.Add(s); } }
public async Task GetServicesAsync() { ScanForServices = true; await App.Device.ConnectAsync(); ServicesList.Clear(); var list = await App.Device.GetServicesAsync(); foreach (var service in list) { ServicesList.Add(service); } ScanForServices = false; }