{"id":859,"date":"2023-02-07T08:48:30","date_gmt":"2023-02-07T12:48:30","guid":{"rendered":"https:\/\/www.searchenginegenie.com\/programming-blog\/?p=859"},"modified":"2023-02-07T08:48:32","modified_gmt":"2023-02-07T12:48:32","slug":"add-static-content-to-category-in-asp-net-write-code","status":"publish","type":"post","link":"https:\/\/www.searchenginegenie.com\/programming-blog\/add-static-content-to-category-in-asp-net-write-code\/","title":{"rendered":"Add static content to category in ASP.net ,write code"},"content":{"rendered":"\n<p>\/\/Add static content to category<\/p>\n\n\n\n<p>string categoryName = &#8220;Books&#8221;;<\/p>\n\n\n\n<p>string staticContent = &#8220;Description of Books&#8221;;<\/p>\n\n\n\n<p>using (var dbContext = new DatabaseContext())<br>{<br>var category = dbContext.Categories.SingleOrDefault(c =&gt; c.Name == categoryName);<br>if (category != null)<br>{<br>category.StaticContent = staticContent;<br>dbContext.SaveChanges();<br>}<br>}<br>You should now be able to manage orders from Magento through ShipStation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/Add static content to category string categoryName = &#8220;Books&#8221;; string staticContent = &#8220;Description of Books&#8221;; using (var dbContext = new DatabaseContext()){var category = dbContext.Categories.SingleOrDefault(c =&gt; c.Name == categoryName);if (category != null){category.StaticContent = staticContent;dbContext.SaveChanges();}}You should now be able to manage orders from Magento through ShipStation.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":1,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":860,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/859\/revisions\/860"}],"wp:attachment":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}