예제 #1
0
 public IEnumerable <ActivityTemplateDTO> GetSolutions(IUnitOfWork uow, IFr8AccountDO curAccount)
 {
     throw new NotImplementedException();
 }
예제 #2
0
        public IEnumerable <ActivityTemplateDTO> GetAvailableActivities(IUnitOfWork uow, IFr8AccountDO curAccount)
        {
            IEnumerable <ActivityTemplateDTO> curActivityTemplates;

            curActivityTemplates = _activityTemplate
                                   .GetAll()
                                   .OrderBy(t => t.Categories, new ActivitiesCategoriesComparer())
                                   .Select(Mapper.Map <ActivityTemplateDTO>)
                                   .ToList();


            //we're currently bypassing the subscription logic until we need it
            //we're bypassing the pluginregistration logic here because it's going away in V2

            //var plugins = _subscription.GetAuthorizedPlugins(curAccount);
            //var plugins = _plugin.GetAll();
            // var curActionTemplates = plugins
            //    .SelectMany(p => p.AvailableActions)
            //    .OrderBy(s => s.ActionType);

            return(curActivityTemplates);
        }