Beispiel #1
0
        /// <summary>
        /// Get Address by zipCode
        /// </summary>
        /// <param name="zipCode"></param>
        /// <returns></returns>
        public virtual IEnumerable <Address> GetByZipCode(string zipCode)
        {
            zipCode.CheckNullOrEmpty(nameof(zipCode));
            _logger.LogInformation($"Get Address info of zipCode: '{zipCode}'");

            return(_mapper.Map <IEnumerable <Address> >(_addressRepo.FindByZipCode(zipCode)));
        }