public ShelvesController(IConfiguration configuration, IShelvesRepository shelvesRepository, IMapper mapper, IHttpContextAccessor httpContextAccessor) : base(configuration, httpContextAccessor) { _shelvesRepository = shelvesRepository; _mapper = mapper; }
/// <summary> /// Consutructor. /// </summary> /// <param name="shelvesRepository"></param> /// <param name="mapper"></param> public ShelvesService(IShelvesRepository shelvesRepository, IMapper mapper) { _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _shelvesRepository = shelvesRepository ?? throw new ArgumentNullException(nameof(shelvesRepository)); }