{"action":"created","issue":{"url":"https://api.github.com/repos/KalikoCMS/KalikoCMS.Core/issues/71","labels_url":"https://api.github.com/repos/KalikoCMS/KalikoCMS.Core/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/KalikoCMS/KalikoCMS.Core/issues/71/comments","events_url":"https://api.github.com/repos/KalikoCMS/KalikoCMS.Core/issues/71/events","html_url":"https://github.com/KalikoCMS/KalikoCMS.Core/issues/71","id":115074168,"number":71,"title":"PageDataStore in MVC","user":{"login":"barisakpunar","id":1381704,"avatar_url":"https://avatars.githubusercontent.com/u/1381704?v=3","gravatar_id":"","url":"https://api.github.com/users/barisakpunar","html_url":"https://github.com/barisakpunar","followers_url":"https://api.github.com/users/barisakpunar/followers","following_url":"https://api.github.com/users/barisakpunar/following{/other_user}","gists_url":"https://api.github.com/users/barisakpunar/gists{/gist_id}","starred_url":"https://api.github.com/users/barisakpunar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barisakpunar/subscriptions","organizations_url":"https://api.github.com/users/barisakpunar/orgs","repos_url":"https://api.github.com/users/barisakpunar/repos","events_url":"https://api.github.com/users/barisakpunar/events{/privacy}","received_events_url":"https://api.github.com/users/barisakpunar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T15:10:25Z","updated_at":"2015-11-04T18:22:33Z","closed_at":null,"body":"How can we use PageDataStore in MVC?\r\nThank you."},"comment":{"url":"https://api.github.com/repos/KalikoCMS/KalikoCMS.Core/issues/comments/153818548","html_url":"https://github.com/KalikoCMS/KalikoCMS.Core/issues/71#issuecomment-153818548","issue_url":"https://api.github.com/repos/KalikoCMS/KalikoCMS.Core/issues/71","id":153818548,"user":{"login":"fschultz","id":8556597,"avatar_url":"https://avatars.githubusercontent.com/u/8556597?v=3","gravatar_id":"","url":"https://api.github.com/users/fschultz","html_url":"https://github.com/fschultz","followers_url":"https://api.github.com/users/fschultz/followers","following_url":"https://api.github.com/users/fschultz/following{/other_user}","gists_url":"https://api.github.com/users/fschultz/gists{/gist_id}","starred_url":"https://api.github.com/users/fschultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fschultz/subscriptions","organizations_url":"https://api.github.com/users/fschultz/orgs","repos_url":"https://api.github.com/users/fschultz/repos","events_url":"https://api.github.com/users/fschultz/events{/privacy}","received_events_url":"https://api.github.com/users/fschultz/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T18:22:33Z","updated_at":"2015-11-04T18:22:33Z","body":"In MVC the page data store needs to be created by calling `GetStore` on the `DataStoreManager` class with the page that you wish to get the data store for (usually `currentPage` that was passed to the page controller action):\r\n```c#\r\nvar pageDataStore = DataStoreManager.GetStore(currentPage)\r\n```\r\n\r\nThe created store can then be used for fetching or storing values:\r\n```c#\r\n// To fetch:\r\nvar someValue = pageDataStore .Get<TestClass>(\"MyTest\");\r\n\r\n// To store:\r\npageDataStore.Store(\"MyTest\", someValue);\r\n```\r\n"}}