protected virtual EventViewModel GetViewModel(EventBase @event, ActivityFeedOptions options)
        {
            var model = @event.Map <EventViewModel>();

            model.CanEdit      = _eventsService.CanEdit(@event);
            model.CanSubscribe = _eventsService.CanSubscribe(@event.Id);
            model.Links        = options.Links;
            model.IsReadOnly   = options.IsReadOnly;

            model.HeaderInfo       = @event.Map <IntranetActivityDetailsHeaderViewModel>();
            model.HeaderInfo.Owner = _intranetMemberService.Get(@event).Map <MemberViewModel>();
            model.HeaderInfo.Links = options.Links;

            return(model);
        }
        protected virtual EventItemViewModel GetItemViewModel(EventBase @event, IActivityLinks links)
        {
            var model = @event.Map <EventItemViewModel>();

            model.MediaIds     = @event.MediaIds;
            model.CanSubscribe = _eventsService.CanSubscribe(@event.Id);
            model.LightboxGalleryPreviewInfo = GetGalleryPreviewInfo(@event);
            model.Links = links;

            model.HeaderInfo       = @event.Map <IntranetActivityItemHeaderViewModel>();
            model.HeaderInfo.Owner = _intranetMemberService.Get(@event).Map <MemberViewModel>();
            model.HeaderInfo.Links = links;

            return(model);
        }
        protected virtual EventEditModel GetEditViewModel(EventBase @event, ActivityLinks links)
        {
            var model         = @event.Map <EventEditModel>();
            var mediaSettings = _eventsService.GetMediaSettings();

            model.MediaRootId = mediaSettings.MediaRootId;
            FillMediaSettingsData(mediaSettings);

            model.Links = links;
            return(model);
        }