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) { } }
public IEnumerable <SubjectInfoDto> GetSubjectsByKeyword(object keywordId, int templateId, int pageIndex, int pageSize, object languageId) { using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CMSDataStoreKey)) { ReferenceInfoFacade facade = new ReferenceInfoFacade(uow); List <SubjectInfoDto> dtoList = facade.GetSubjectsByKeyword(keywordId, templateId, pageIndex, pageSize, languageId, new SubjectInfoConverter()); return(dtoList); } }