예제 #1
0
 public ShelvesController(IConfiguration configuration,
                          IShelvesRepository shelvesRepository,
                          IMapper mapper,
                          IHttpContextAccessor httpContextAccessor) : base(configuration, httpContextAccessor)
 {
     _shelvesRepository = shelvesRepository;
     _mapper            = mapper;
 }
예제 #2
0
 /// <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));
 }