예제 #1
0
        /// <summary>
        /// Returns general information for a user asyncronously
        /// </summary>
        /// <param name="personId">The person id to lookup</param>
        /// <returns>Personally identifiable information for person</returns>
        public Task <GeneralDTO> GetGeneralByIdAsync(int personId)
        {
            var general = PersonQueries.CreateGetGeneralByIdQuery(this.Context, personId).SingleOrDefaultAsync();

            this.logger.Trace("Retrieved general person info by id {0}.", personId);
            return(general);
        }