Ejemplo n.º 1
0
 protected override void MapBeforeCache(IList <Event> cached)
 {
     foreach (var activity in cached)
     {
         var entity = activity;
         entity.GroupId = _groupActivityService.GetGroupId(activity.Id);
         _subscribeService.FillSubscribers(entity);
         _commentsService.FillComments(entity);
         _likesService.FillLikes(entity);
         _activitySubscribeSettingService.FillSubscribeSettings(entity);
     }
 }
Ejemplo n.º 2
0
 protected override void MapBeforeCache(IList <Entities.News> cached)
 {
     foreach (var activity in cached)
     {
         var entity = activity;
         entity.Location = _activityLocationService.Get(entity.Id);
         entity.GroupId  = _groupActivityService.GetGroupId(activity.Id);
         _subscribeService.FillSubscribers(entity);
         _commentsService.FillComments(entity);
         _likesService.FillLikes(entity);
     }
 }