public AddressController(IAddressService addressService, IAddressCityService addressCityService,
                          IAddressStreetService addressStreetService, IAddressRegionService addressRegionService)
 {
     this.addressService       = addressService;
     this.addressCityService   = addressCityService;
     this.addressStreetService = addressStreetService;
     this.addressRegionService = addressRegionService;
 }
Esempio n. 2
0
 public AddressService(IRepository <Address, int> repository,
                       IServiceT <Address, AddressDTO, int> service,
                       IAddressCityService cityService,
                       IAddressRegionService regionService,
                       IAddressStreetService streetSetvice)
 {
     this.repository    = repository;
     this.service       = service;
     this.CityService   = cityService;
     this.RegionService = regionService;
     this.StreetSetvice = streetSetvice;
 }