コード例 #1
0
        public IEnumerable <Calendar> GetCalendarsByUser(string user)
        {
            var subscriptions = _calendarSubscriptionRepository.GetByUser(user);

            return(_calendarRepository.GetByIds(subscriptions.Select(x => x.CalendarId)));
            // return subscriptions.Select(c => c.Calendar);
        }