Esempio n. 1
0
        public async Task <MerchantModel> GetMerchantModelBySecretKeyAsync(string secretKey)
        {
            Guard.IsNotNull(secretKey, nameof(secretKey));

            var entity = await _repository.GetBySecretKeyAsync(secretKey);

            return(new MerchantModel {
                Id = entity.Id, Name = entity.Name, SecretKey = entity.SecretKey
            });
        }