/// <summary> /// Get Address by contactId /// </summary> /// <param name="contactId"></param> /// <returns></returns> public virtual IEnumerable <Address> GetByContactId(int contactId) { contactId.CheckLessThanOrEqual(0, nameof(contactId)); _logger.LogInformation($"Get Address info of contactId: '{contactId}'"); return(_mapper.Map <IEnumerable <Address> >(_addressRepo.FindByContactId(contactId))); }