Beispiel #1
0
        public void TestAll()
        {
            ReferenceInfoFacade facade = new ReferenceInfoFacade(UnitOfWork);

            var result = facade.GetAttachedSubjects <SubjectInfoDto>(23, 17, 1, 10, 1, 1, new SubjectInfoConverter());

            if (result != null)
            {
            }


            result = facade.GetSubjectsByKeyword(22, 9, 1, 10, 1, new SubjectInfoConverter());

            //result = facade.GetSubjectsByTemplate(9, null, 1, 10, null, null, 1, new SubjectInfoConverter());

            //List<FolderInfoDto> list = facade.GetFolders(Core.FolderType.Content, new FolderInfoConverter());

            List <ReferenceBriefDto> result11 = facade.GetList <ReferenceBriefDto>(30, 1, 10, new ReferenceBriefConverter(2));

            if (result11 != null)
            {
            }

            List <ReferenceBriefDto> result113 = facade.GetList <ReferenceBriefDto>(12, 1, 10, new ReferenceBriefConverter());

            if (result113 != null)
            {
            }

            ReferenceInfoDto item = facade.GetReferenceInfo <ReferenceInfoDto>(3965, new ReferenceInfoConverter());

            if (item != null)
            {
            }
        }
Beispiel #2
0
 public IEnumerable <SubjectInfoDto> GetAttachedSubjects(object refId, int subitemId, int pageIndex, int pageSize, object languageId)
 {
     using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CMSDataStoreKey))
     {
         ReferenceInfoFacade   facade  = new ReferenceInfoFacade(uow);
         List <SubjectInfoDto> dtoList = facade.GetAttachedSubjects(refId, subitemId, pageIndex, pageSize, null, languageId, new SubjectInfoConverter());
         return(dtoList);
     }
 }