예제 #1
0
        public virtual IEnumerable <BulletinsBackofficeViewModel> GetAll()
        {
            var bulletins = _bulletinsService.GetAll(true);
            var result    = bulletins.Map <IEnumerable <BulletinsBackofficeViewModel> >();

            return(result);
        }
예제 #2
0
        protected virtual IEnumerable <IIntranetActivity> GetAllActivities()
        {
            var allBulletins = _bulletinsService.GetAll().Cast <IIntranetActivity>();
            var allNews      = _newsService.GetAll().Cast <IIntranetActivity>();
            var allEvents    = _eventsService.GetAll().Cast <IIntranetActivity>();

            return(allBulletins.Concat(allNews).Concat(allEvents));
        }