Beispiel #1
0
        /// <summary>
        /// Count of participants by top 5 location
        /// </summary>
        /// <param name="programId"></param>
        /// <returns></returns>
        public async Task <IEnumerable <SnapshotDTO> > GetProgramParticipantsByLocation(int programId)
        {
            var childPrograms = programService.GetAllChildProgramsWithParent(programId);
            var dto           = await SnapshotQueries.CreateGetProgramParticipantsByLocationQuery(Context, childPrograms.Select(p => p.ProgramId).ToList());

            return(dto);
        }