/// <summary>
        /// Retrieves the phone number dto with the given id.
        /// </summary>
        /// <param name="id">The id of the phone number.</param>
        /// <returns>The phone number dto.</returns>
        public async Task <PhoneNumberDTO> GetByIdAsync(int id)
        {
            var dto = await PhoneNumberQueries.CreateGetPhoneNumberDTOByIdQuery(this.Context, id).FirstOrDefaultAsync();

            logger.Info("Retrieved the phone number dto with the given id [{0}].", id);
            return(dto);
        }
        /// <summary>
        /// Retrieves the phone number dto with the given id.
        /// </summary>
        /// <param name="id">The id of the phone number.</param>
        /// <returns>The phone number dto.</returns>
        public PhoneNumberDTO GetById(int id)
        {
            var dto = PhoneNumberQueries.CreateGetPhoneNumberDTOByIdQuery(this.Context, id).FirstOrDefault();

            logger.Info("Retrieved the phone number dto with the given id [{0}].", id);
            return(dto);
        }