Beispiel #1
0
        public async Task <IActionResult> FamilyGallery()
        {
            var cancellationToken = GetCancellationToken();
            var events            = await _familyEventReadRepository.GetAllEvents(cancellationToken);

            return(View(new FamilyGalleryCreateModel(_clanAndPeopleService.Clans.ToList(),
                                                     events.Select(Models.FamilyEvent.Map).ToList())));
        }
Beispiel #2
0
        // GET: /<controller>/
        public async Task <IActionResult> Reunions()
        {
            var events = (await _readmodel.GetAllEvents(new CancellationToken())).Where(t => t.EventType == Repo.Core.Model.EventType.Reunion).ToList();

            return(View(events.Select(e => Models.FamilyEvent.Map(e))));
        }