private async void Create() { var created = await airportConnector.PlaneTypeEndpoint.Create(newPlaneType); PlaneTypes.Add(created); newPlaneType = new PlaneType(); RaisePropertyChanged(() => PlaneTypes); RaisePropertyChanged(() => NewPlaneType); }
private async void FillPlaneTypesCollection() { var temp = await service.GetEntities(); foreach (var item in temp) { PlaneTypes.Add(item); } }