JavaScript
10
Вклад в тег
class Company
{
public List<Office> Offices {get; set;}
public string Description {get; set;} //Тут описание вашей компании: год основания там и все такое.
public Contacts GlobalContacts {get;set;} //Глобальные контакты для всей компании
}
class Office
{
public Address Address {get; set;}
public List<Employee> Employees {get; set;}
public List<Tour> Tours {get;set;}
public Contacts Contacts {get;set;}
}
class Address
{
public string Country {get;set;}
public string City {get;set;}
public string Street {get;set;}
public string HouseNumber {get; set;}
}
class Tour
{
public string Country {get; set;}
public string City {get; set;}
public Hotel Hotel {get; set;}
}
class Hotel
{
public string Description {get;set;}
public Address Address {get; set;}
public List<Image> Images{get; set;}
}
var office = new Office(
new Address(country, city, street, houseNumber),
new List<Employee>(),
new List<Tour>(),
new Contacts { Email = "office@mail"}
);