示例#1
0
        public ActionResult TestRepoContactGetTestModelValue(string contactid)
        {
            Sitecore.Analytics.Data.ContactRepository repo = new Sitecore.Analytics.Data.ContactRepository();

            var c = repo.LoadContactReadOnly(contactid);

            var echo = c.Extensions.Get <TestModel>(testKey);

            return(Test(echo.TestValue));
        }
 public Contact GetContact(Guid id)
 {
     return(_contactRepository.LoadContactReadOnly(id));
 }