public async Task <IEnumerable <ActivityForDayRecordPanel> > HandleAndGetResultAsync(BrowseActivitiesForDayRecordPanel query)
        {
            var activities = await _activitiesRepository.BrowseAsync(new BrowseQuery());

            var activitiesForDayRecordPanel = activities.Select(activity => new ActivityForDayRecordPanel(activity.Id, activity.Name, activity.Type, activity.HasValue));

            return(activitiesForDayRecordPanel);
        }
コード例 #2
0
        public async Task <IEnumerable <ActivityForActivitiesPanel> > HandleAndGetResultAsync(BrowseActivitiesForActivitiesPanel query)
        {
            var activities = await _activitiesRepository.BrowseAsync(new BrowseQuery());

            var activitiesForActivitiesPanel = activities.Select(activity => _activityForActivitiesPanelMapper.Map(activity));

            return(activitiesForActivitiesPanel);
        }