Ejemplo n.º 1
0
        /// <summary>
        /// Returns education and professional employment information for a user asyncronously
        /// </summary>
        /// <param name="personId">The person id to lookup</param>
        /// <returns>Education and professional employment information for person</returns>
        public async Task <IList <EducationEmploymentDTO> > GetEmploymentsByPersonIdAsync(int personId)
        {
            var employments = await PersonQueries.CreateGetEmploymentsByPersonIdQuery(this.Context, personId).ToListAsync();

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