public List <Order> GetOrders() { return((from go in DataSource.orders select Cloning.Clone(go)).ToList()); }
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)); }
public Order GetOrder(int key) { return(Cloning.Clone(DataSource.orders.Find(x => x.Key == key))); }
public void UpdateHost(Host host) { DataSource.hosts.Remove(DataSource.hosts.Find(x => x.Id == host.Id)); DataSource.hosts.Add(Cloning.Clone(host)); }
public void UpdatePerson(Person person) { DataSource.persons.Remove(DataSource.persons.Find(x => x.Id == person.Id)); DataSource.persons.Add(Cloning.Clone(person)); }
public Person GetPerson(int id) { return(Cloning.Clone(DataSource.persons.Find(x => x.Id == id))); }
public void UpdateGuestRequest(GuestRequest guestRequest) { DataSource.guestRequests.Remove(DataSource.guestRequests.Find(x => x.Key == guestRequest.Key)); DataSource.guestRequests.Add(Cloning.Clone(guestRequest)); }
public List <HostingUnit> GetHostingUnits() { return((from hu in DataSource.hostingUnits select Cloning.Clone(hu)).ToList()); }
public HostingUnit GetHostingUnit(int key) { return(Cloning.Clone(DataSource.hostingUnits.Find(x => x.Key == key))); }
public Host GetHost(int id) { return(Cloning.Clone(DataSource.hosts.Find(x => x.Id == id))); }
public List <GuestRequest> GetGuestRequests() { return((from gr in DataSource.guestRequests select Cloning.Clone(gr)).ToList()); }
public GuestRequest GetGuestRequest(int key) { return(Cloning.Clone(DataSource.guestRequests.Find(x => x.Key == key))); }