Ejemplo n.º 1
0
 public async void DeleteCrew()
 {
     if (await service.DeleteEntity(SelectedCrew.Id))
     {
         Crews.Remove(Crews.FirstOrDefault(c => c.Id == SelectedCrew.Id));
     }
 }
Ejemplo n.º 2
0
 public async void UpdateCrew()
 {
     if (await service.UpdateEntity(SelectedCrew.Id, SelectedCrew))
     {
         var tempCrew = Crews.FirstOrDefault(c => c.Id == SelectedCrew.Id);
         tempCrew.Pilot      = SelectedCrew.Pilot;
         tempCrew.Stewardess = SelectedCrew.Stewardess;
     }
 }