public virtual IEnumerable <BulletinsBackofficeViewModel> GetAll() { var bulletins = _bulletinsService.GetAll(true); var result = bulletins.Map <IEnumerable <BulletinsBackofficeViewModel> >(); return(result); }
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)); }