public UnitOfWork(PersonKartotekContext context) { Context = context; AddressRepository = new AddressRepository(context); PersonAddressRepository = new PersonAddressRepository(context); PersonRepository = new PersonRepository(context); PhoneNumberRepository = new PhoneNumberRepository(context); PrimaryAddressRepository = new PrimaryAddressRepository(context); ZipRepository = new ZipRepository(context); }
public ZipService(IZipRepository zipRepository) { _zipRepository = zipRepository; }