public ObservableCollection <Coach> getCoachList()
        {
            ObservableCollection <Coach> list = new ObservableCollection <Coach>();
            Dictionary <string, object>  jsonTList;
            string json;

            json      = FBGet("https://carservices-cb0bd.firebaseio.com/CoachList.json");
            jsonTList = JsonConvert.DeserializeObject <Dictionary <string, object> >(json);
            foreach (var o in jsonTList)
            {
                Coach t = JsonConvert.DeserializeObject <Coach>(o.Value.ToString());
                t.id = o.Key;
                list.Add(t);
                //Console.WriteLine(t.id + " - " + t.seatNumber + " - " + t.status);
            }
            return(list);
        }
 public void copyCoach(Coach coach)
 {
     id          = coach.id;
     from        = coach.from;
     journey     = coach.journey;
     companyId   = coach.companyId;
     price       = coach.price;
     timeEnd     = coach.timeEnd;
     timeStart   = coach.timeStart;
     vacantSeats = coach.vacantSeats;
     stars       = coach.stars;
     type        = coach.type;
     //for(int i=0; i<ticketList.Length; i++)
     //{
     //    ticketList[i] = coach.ticketList[i];
     //}
 }