public async void DeletePlaneType()
 {
     if (await service.DeleteEntity(SelectedPlaneType.Id))
     {
         PlaneTypes.Remove(PlaneTypes.FirstOrDefault(c => c.Id == SelectedPlaneType.Id));
     }
 }
 public async void UpdatePlaneType()
 {
     if (await service.UpdateEntity(SelectedPlaneType.Id, SelectedPlaneType))
     {
         var tempPlaneType = PlaneTypes.FirstOrDefault(c => c.Id == SelectedPlaneType.Id);
         tempPlaneType.Model         = SelectedPlaneType.Model;
         tempPlaneType.MaxHeight     = SelectedPlaneType.MaxHeight;
         tempPlaneType.MaxMass       = SelectedPlaneType.MaxMass;
         tempPlaneType.Places        = SelectedPlaneType.Places;
         tempPlaneType.Speed         = SelectedPlaneType.Speed;
         tempPlaneType.FleightLength = SelectedPlaneType.FleightLength;
     }
 }