public IEnumerable <CustomerEntity> Get()
 {
     // Logging: Messages are logged using the logger that was dependency-injected. This call logs information
     //          to all the loggers added into the LoggerFactory.
     //
     // Logging: This is also an example of semantic or structured logging. The message string contains
     // placeholders which are replaced by the passed in parameters. This is nice because it provides
     // the parameters to the logging provider which can write out the parameters in a structured making
     // querying the log output easier.
     _logger.LogInformation(BuildLogInfo(nameof(Get), "LoggingGetCustomers"));
     return(_customersDataProvider.GetCustomers());
 }
 /// <summary>
 /// Returns list of all existed customers.
 /// </summary>
 /// <param name="bearerToken">The bearer token.</param>
 /// <returns></returns>
 public async Task <IList <CustomerResponseDto> > GetCustomers(string bearerToken)
 {
     return(await customersDataProvider.GetCustomers(bearerToken));
 }