public ClientService(IMapper mapper, IClientsDataService clientsDataService)
 {
     _mapper             = mapper;
     _clientsDataService = clientsDataService;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientsController"/> class.
 /// </summary>
 /// <param name="clientsDataService">Clients data service</param>
 /// <param name="loggerFactory">Logger factory</param>
 public ClientsController(IClientsDataService clientsDataService, ILoggerFactory loggerFactory)
 {
     _clientsDataService = clientsDataService ?? throw new ArgumentNullException(nameof(clientsDataService));
     _logger             = loggerFactory?.CreateLogger(nameof(ClientsController)) ?? throw new ArgumentNullException(nameof(loggerFactory));
 }