Example #1
0
 public AddressController(IAddressService serviceAddress, IAddressRepository addressRepository, HRMSDBContext context, ISuburbRepository suburbRepository)
 {
     _serviceAddress    = serviceAddress;
     _addressRepository = addressRepository;
     _context           = context;
     _suburbRepository  = suburbRepository;
 }
 public PropertiesController(IMapper mapper, IPropertyRepository propertyRepository, IOwnerRepository ownerRepository,
                             ISuburbRepository suburbRepository, IPropertyTypeRepository propertyTypeRepository, IUnitOfWork unitOfWork)
 {
     this.mapper                 = mapper;
     this.propertyRepository     = propertyRepository;
     this.ownerRepository        = ownerRepository;
     this.suburbRepository       = suburbRepository;
     this.propertyTypeRepository = propertyTypeRepository;
     this.unitOfWork             = unitOfWork;
 }
Example #3
0
 public SuburbController(ISuburbRepository repo)
 {
     _Repo = repo;
 }
 public SuburbsController(IMapper mapper, ISuburbRepository repository, IUnitOfWork unitOfWork)
 {
     this.mapper     = mapper;
     this.repository = repository;
     this.unitOfWork = unitOfWork;
 }
Example #5
0
 public AddressService(IAddressRepository repoAddress, ISuburbRepository repoSuburb)
 {
     _repoAddress = repoAddress;
     _repoSuburb  = repoSuburb;
 }