/// <summary> /// Retrieves the social media dto with the given id. /// </summary> /// <param name="id">The id of the email address.</param> /// <returns>The email address dto.</returns> public async Task <EmailAddressDTO> GetByIdAsync(int id) { var dto = await EmailAddressQueries.CreateGetEmailAddressDTOByIdQuery(this.Context, id).FirstOrDefaultAsync(); logger.Info("Retrieved the email address dto with the given id [{0}].", id); return(dto); }
/// <summary> /// Retrieves the email address dto with the given id. /// </summary> /// <param name="id">The id of the email Address.</param> /// <returns>The email address dto.</returns> public EmailAddressDTO GetById(int id) { var dto = EmailAddressQueries.CreateGetEmailAddressDTOByIdQuery(this.Context, id).FirstOrDefault(); logger.Info("Retrieved the social media dto with the given id [{0}].", id); return(dto); }