public ActionResult Index() { //var contentItem = new ContentItem //{ // VersionRecord = new ContentItemVersionRecord // { // ContentItemRecord = new ContentItemRecord(), // Number = 1, // Latest = true, // Published = true // } //}; //contentItem.VersionRecord.ContentItemRecord.Versions.Add(contentItem.VersionRecord); //_contentStorageProvider.Store(contentItem); //var indexedRecordIds = _contentIndexProvider.GetByFilter(x => x.Id == 1); //var retrievedRecord = _contentStorageProvider.Get(contentItem.Id); //var indexedRetrievedRecords = _contentStorageProvider.GetMany(x => x.Id == 1); var contentItem = _contentManager.New("Foo"); contentItem.As <TestContentPartA>().Line = "Orchard VNext Rocks"; _contentManager.Create(contentItem); var retrieveContentItem = _contentManager.Get(contentItem.Id); var lineToSay = retrieveContentItem.As <TestContentPartA>().Line; return(View("Index", _testDependency.SayHi(lineToSay))); }
public ActionResult Index() { var contentItem = _contentManager.New("Foo"); contentItem.As <TestContentPartA>().Line = "Orchard VNext Rocks"; _contentManager.Create(contentItem); var retrieveContentItem = _contentManager.Get(contentItem.Id); var lineToSay = retrieveContentItem.As <TestContentPartA>().Line; return(View("Index", _testDependency.SayHi(lineToSay))); }
public ActionResult Index() { return(View("Index", _testDependency.SayHi())); }