{"id":232,"date":"2015-11-12T02:07:09","date_gmt":"2015-11-11T22:07:09","guid":{"rendered":"http:\/\/infobs.athn.ru\/?p=232"},"modified":"2015-11-12T02:07:09","modified_gmt":"2015-11-11T22:07:09","slug":"rabota-s-parametrami-zaprosa","status":"publish","type":"post","link":"https:\/\/infobase.athn.ru\/program\/2015\/11\/rabota-s-parametrami-zaprosa\/","title":{"rendered":"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430"},"content":{"rendered":"<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440<br \/>\nhttp:\/\/stackoverflow.com\/questions\/5818065\/how-to-pass-request-querystring-to-url-action<\/p>\n<pre>\npublic static RouteValueDictionary ToRouteValues(this NameValueCollection col, Object obj)\n{\n    var values = new RouteValueDictionary(obj);\n    if (col != null)\n    {\n        foreach (string key in col)\n        {\n            \/\/values passed in object override those already in collection\n            if (!values.ContainsKey(key)) values[key] = col[key];\n        }\n    }\n    return values;\n}\nThen you can use it like so:\n\nUrl.Action(\"action\", \"controller\", Request.QueryString.ToRouteValues(new{ id=0 }));\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 http:\/\/stackoverflow.com\/questions\/5818065\/how-to-pass-request-querystring-to-url-action public static RouteValueDictionary ToRouteValues(this NameValueCollection col, Object obj) { var values = new RouteValueDictionary(obj); if (col != null) { foreach (string key in col) { \/\/values passed <a class=\"more-link\" href=\"https:\/\/infobase.athn.ru\/program\/2015\/11\/rabota-s-parametrami-zaprosa\/\">Continue Reading \u2192<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-csharp"],"_links":{"self":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":0,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"wp:attachment":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}