Exemplo n.º 1
0
 public CustomersRootController(HypermediaCustomersRoot customersRoot, ICustomerRepository customerRepository)
 {
     this.customersRoot      = customersRoot;
     this.customerRepository = customerRepository;
 }
 public HypermediaEntryPoint(HypermediaCustomersRoot hypermediaCustomersRoot, HypermediaCarsRoot hypermediaCarsRoot)
 {
     Links.Add(HypermediaLinks.EntryPoint.CustomersRoot, new HypermediaObjectReference(hypermediaCustomersRoot));
     Links.Add(HypermediaLinks.EntryPoint.CarsRoot, new HypermediaObjectReference(hypermediaCarsRoot));
 }