public PropertyListingBusiness(ILogger <PropertyListingBusiness> logger, IMapper mapper, IPropertyListingRepository listingRepository, PropertyListingResponse listingResponse, ICacheManager cache) { if (logger == null || mapper == null || listingRepository == null || listingResponse == null || cache == null) { throw new ArgumentNullException("Please check the values being passed"); } _logger = logger; _mapper = mapper; _listingRepository = listingRepository; _listingResponse = listingResponse; _cache = cache; }
public HomeController() { _propertyRepo = new PropertyListingRepository(); }