Exemple #1
0
 public List <Order> GetOrders()
 {
     return((from go in DataSource.orders select Cloning.Clone(go)).ToList());
 }
Exemple #2
0
 public void UpdateHostingUnit(HostingUnit update_hostingUnit)
 {
     DataSource.hostingUnits.Remove(DataSource.hostingUnits.Find(x => x.Key == update_hostingUnit.Key));
     DataSource.hostingUnits.Add(Cloning.Clone(update_hostingUnit));
 }
Exemple #3
0
 public Order GetOrder(int key)
 {
     return(Cloning.Clone(DataSource.orders.Find(x => x.Key == key)));
 }
Exemple #4
0
 public void UpdateHost(Host host)
 {
     DataSource.hosts.Remove(DataSource.hosts.Find(x => x.Id == host.Id));
     DataSource.hosts.Add(Cloning.Clone(host));
 }
Exemple #5
0
 public void UpdatePerson(Person person)
 {
     DataSource.persons.Remove(DataSource.persons.Find(x => x.Id == person.Id));
     DataSource.persons.Add(Cloning.Clone(person));
 }
Exemple #6
0
 public Person GetPerson(int id)
 {
     return(Cloning.Clone(DataSource.persons.Find(x => x.Id == id)));
 }
Exemple #7
0
 public void UpdateGuestRequest(GuestRequest guestRequest)
 {
     DataSource.guestRequests.Remove(DataSource.guestRequests.Find(x => x.Key == guestRequest.Key));
     DataSource.guestRequests.Add(Cloning.Clone(guestRequest));
 }
Exemple #8
0
 public List <HostingUnit> GetHostingUnits()
 {
     return((from hu in DataSource.hostingUnits select Cloning.Clone(hu)).ToList());
 }
Exemple #9
0
 public HostingUnit GetHostingUnit(int key)
 {
     return(Cloning.Clone(DataSource.hostingUnits.Find(x => x.Key == key)));
 }
Exemple #10
0
 public Host GetHost(int id)
 {
     return(Cloning.Clone(DataSource.hosts.Find(x => x.Id == id)));
 }
Exemple #11
0
 public List <GuestRequest> GetGuestRequests()
 {
     return((from gr in DataSource.guestRequests select Cloning.Clone(gr)).ToList());
 }
Exemple #12
0
 public GuestRequest GetGuestRequest(int key)
 {
     return(Cloning.Clone(DataSource.guestRequests.Find(x => x.Key == key)));
 }