//private readonly IHttpContextAccessor _httpContext; public RestaurantsController(IRestaurantService restService, IRestaurantMapper restaurantMapper, IServiceAreaService serviceAreaService) { _restService = restService; _restMapper = restaurantMapper; _saService = serviceAreaService; }
public RestaurantService( IRestaurantRepository restaurantDataSource, IDeliverySuburbsRepository restaurantDeliverySuburbsRepository, ICacheManager cache, IRestaurantMapper mapper) { _restaurantRepository = restaurantDataSource; _cache = cache; _mapper = mapper; _restaurantDeliverySuburbsRepository = restaurantDeliverySuburbsRepository; _mapper.CreateMapper(); }