{"id":221585,"date":"2014-05-02T16:54:03","date_gmt":"2014-05-02T12:54:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=221585"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=221585","title":{"rendered":"<span class=\"post_title\">Model View Dispatcher (cqrs under mvc)<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/04f\/1ff\/a67\/04f1ffa674527af919709d4cc983a7e9.png\" alt=\"image\"\/><br \/>  \u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0441\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0445\u043e\u0447\u0443 \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Incoding Framework.<br \/>  <b>Model View Dispatcher (MVD)<\/b> \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u043e\u0442 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 (\u0430 \u0438\u043c\u0435\u043d\u043d\u043e asp.net mvc controller) \u0438 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0435\u0439 \u043e <b>IML<\/b> \u0438 <b>CQRS<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0445\u043e\u0434\u044f\u0442 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 framework  <\/p>\n<ol>\n<li> <a href=\"http:\/\/habrahabr.ru\/post\/209734\/\">\u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 IML<\/a> <\/li>\n<li> <a href=\"http:\/\/habrahabr.ru\/post\/211206\/\">Incoding CQRS<\/a><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430, \u043d\u043e \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0438 \u043e\u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u0430 \u043d\u0435 \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d\u043e\u0439 <\/i>   <\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/214293\/\">IML vs AngularJs <\/a><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0434\u0432\u0435\u0440\u0433\u043b\u0430\u0441\u044c \u043a\u0440\u0438\u0442\u0438\u043a\u0435 (\u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0438 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439) <\/i>  <\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/214963\/\">\u041e\u0442\u0432\u0435\u0442 \u043d\u0430 IMl vs AngularJs <\/a><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0443\u0441\u043f\u0435\u0445\u043e\u043c, \u043d\u043e \u0443\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435<\/i>  <\/li>\n<\/ol>\n<p>  MVD \u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445, \u043d\u043e \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 IML, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443\u2026<\/p>\n<h4>\u0417\u0430\u0447\u0435\u043c? <\/h4>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f asp.net mvc + cqrs  <\/p>\n<ul>\n<li><b>Controller<\/b><br \/> \n<pre><code class=\"cs\">public ActionResult Details(GetUserDetailsQuery query) {     var model = dispatcher.Query(query);     return Json(model); } <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: action \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 binding \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 query \u0432 Dispatcher \u0434\u043b\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0438\u0434\u0435 Json<\/i>  <\/li>\n<li><b>View<\/b><br \/> \n<pre><code class=\"javascript\">$.get('@Url.Action(&quot;Details&quot;,&quot;Controller&quot;)',callback) <\/code><\/pre>\n<p>  <\/li>\n<\/ul>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0430 Query \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u044b, \u043d\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c Action<\/i><\/p>\n<h4>\u0414\u0438\u0435\u0442\u0430 <\/h4>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u0430\u0434\u0438\u0442\u044c controller \u043d\u0430 \u00ab\u0434\u0438\u0435\u0442\u0443\u00bb \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0441\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u043c Mediator (\u043a\u0430\u043a \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 Interface \u0438 Generic, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043a\u043e\u0434, \u043d\u043e \u043d\u0435 \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0435 Controller\/Action.<\/p>\n<p>  <b>Model View Dispatcher<\/b> (MVD) \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c Command\/Query \u0432 \u00ab\u043e\u0431\u0445\u043e\u0434\u00bb asp.net mvc. \u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443, \u043d\u043e \u0441 MVD  <\/p>\n<pre><code class=\"javascript\">$.get('@Url.Dispatcher().Query(new GetUserDetailsQuery()).AsJson()',callback) <\/code><\/pre>\n<p>  <\/p>\n<h5>\u041f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0431\u043e\u043d\u0443\u0441\u044b <\/h5>\n<p>  <\/p>\n<ul>\n<li> \u041d\u0435 \u043d\u0443\u0436\u0435\u043d Action <\/li>\n<li> \u041f\u0440\u043e\u0449\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u0443 (go to delcaration \u0431\u0435\u0437 \u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a\u043e\u0432) \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430<\/li>\n<li> \u0421\u0442\u0440\u043e\u0433\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 URL (visual studio intelisence, refactor utilities) <\/li>\n<\/ul>\n<h4>\u041d\u0435\u0442 MVC ???<\/h4>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c MVD \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443:<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c DispatcherController (\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 1.1 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 nuget), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0442 DispatcherControllerBase   <\/p>\n<pre><code class=\"cs\">public class DispatcherController : DispatcherControllerBase {             public DispatcherController()    : base(typeof(T).Assembly)     {    }     } <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 Assembly \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b Command\/Query <\/i><\/p>\n<p>  <a href=\"https:\/\/github.com\/IncodingSoftware\/Incoding-Framework\/blob\/master\/src\/Incoding\/MvcContrib\/MVD\/DispatcherControllerBase.cs\">DispatcherControllerBase <\/a>\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b (Actions):  <\/p>\n<pre><code class=\"cs\">Query(string incType, string incGeneric, bool? incValidate) Render(string incView, string incType, string incGeneric) Push(string incType, string incGeneric) Composite(string incTypes) QueryToFile(string incType, string incGeneric, string incContentType, string incFileDownloadName) <\/code><\/pre>\n<p>  \u043f\u0440\u0438\u043c\u0435\u0440 url, \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d Push command   <\/p>\n<pre><code class=\"cs\">Url.Action(&quot;Push&quot;, &quot;Dispatcher&quot;, new  { incType = typeof(Command).Name } ) <\/code><\/pre>\n<p>  \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0447\u0435\u0440\u0435\u0437 DSL (domain specific language)  <\/p>\n<pre><code class=\"cs\">Url.Dispatcher().Push(new Command()) <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0434\u0435\u043b\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 (\u0445\u043e\u0442\u044f \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e), \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0432 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u043e\u0442 \u0434\u0435\u0442\u0430\u043b\u0435\u0439 (\u0438\u043c\u0435\u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0442.\u0434.) <\/i><\/p>\n<p>  <b>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/b>  <\/p>\n<ul>\n<li> MVD \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 IDispatcher, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0432 IoCFactory (<a href=\"https:\/\/github.com\/IncodingSoftware\/MVD\/blob\/master\/MVD.Domain\/Infrastructure\/Bootstrapper.cs\">\u043f\u0440\u0438\u043c\u0435\u0440 <\/a>\u0441\u043e StructureMap \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430) <\/li>\n<li> \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 ActionResult \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/IncodingSoftware\/Incoding-Framework\/blob\/master\/src\/Incoding\/MvcContrib\/Core\/IncodingResult.cs\">IncodingResult<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 JSON<br \/>  <code>{ success: true\/false , data:something\/null , redirectTo:url\/null }<\/code>   <\/li>\n<\/ul>\n<p>  <b>\u0412\u044b\u0432\u043e\u0434:<\/b> \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f MVD \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 asp.net mvc, \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u043d\u044b\u0439 (\u043d\u0435 generic) Controller, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c httphandler \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 http \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<\/p>\n<h4>\u0427\u0442\u043e \u0443\u043c\u0435\u0435\u0442 ?<\/h4>\n<p>   MVD \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 asp.net mvc:<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043d\u0430 <a href=\"https:\/\/github.com\/IncodingSoftware\/MVD\">GitHub<\/a><\/i>  <\/p>\n<ul>\n<li><b>Push <\/b><br \/> \n<pre><code class=\"cs\">Url.Dispatcher().Push(new AddUserCommand                                           {                                Id = &quot;59140B31-8BB2-49BA-AE52-368680D5418A&quot;,                                Name = &quot;Vlad&quot;                                           }) <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0432\u0430\u043b\u0438\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043b\u0435\u0435<\/i>  <\/li>\n<li><b>Push generic <\/b><br \/> \n<pre><code class=\"cs\">Url.Dispatcher().Push(new AddEntityCommand&lt;T&gt;()) <\/code><\/pre>\n<p>  <\/li>\n<li><b>\u0421omposite <\/b><br \/> \n<pre><code class=\"cs\">Url.Dispatcher()      .Push(new AddUserCommand { Id = &quot;1&quot;, Name = &quot;Name&quot; })      .Push(new ApproveUserCommand { UserId = &quot;2&quot; }) <\/code><\/pre>\n<p>  <\/li>\n<li><b>Query as json<\/b><br \/> \n<pre><code class=\"cs\">Url.Dispatcher()      .Query(new GetCurrentDtQuery())      .AsJson() <\/code><\/pre>\n<p>  <\/li>\n<li><b>Query generic<\/b> <br \/> \n<pre><code class=\"cs\">Url.Dispatcher()      .Query(new GetTypeNameQuery&lt;T&gt;())      .AsJson() <\/code><\/pre>\n<p>  <\/li>\n<li><b>Query as view<\/b><br \/> \n<pre><code class=\"cs\">Url.Dispatcher()      .Query(new GetUserQuery())      .AsView(&quot;~\/Views\/Home\/User.cshtml&quot;) <\/code><\/pre>\n<p>  <i> \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043f\u0443\u0442\u044c \u043a View \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043e\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 (\u0432 asp.net mvc \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e Controller) \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441\u0430\u0439\u0442\u0430, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0430\u043f\u043e\u043a. <\/i>  <\/li>\n<li><b>Query as file<\/b><br \/> \n<pre><code class=\"html\">&lt;a href=&quot;@Url.Dispatcher().Query(new GetFileQuery()).AsFile(incFileDownloadName: &quot;framework&quot;)&quot;&gt;Download&lt;\/a&gt; <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f QueryBase&lt;byte[]&gt; \u0434\u043b\u044f Query<\/i>  <\/li>\n<li><b>Model as view<\/b><br \/> \n<pre><code class=\"cs\">Url.Dispatcher()      .Model(new GetUserQuery.Response                {               Id = &quot;2&quot;,               Name = &quot;Incoding Framework&quot;               })      .AsView(&quot;~\/Views\/Home\/User.cshtml&quot;) <\/code><\/pre>\n<p>   <\/li>\n<li><b>View<\/b><br \/> \n<pre><code class=\"cs\">Url.Dispatcher().AsView(&quot;~\/Views\/Home\/Template.cshtml&quot;) <\/code><\/pre>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0438<\/h4>\n<p>  MVD \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 DispatcherController (\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 CQRS \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 Command\/Query \u0438 Url.Dispatcher (\u0430\u0434\u0440\u0435\u0441 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043d\u043e \u0434\u0430\u043b\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435) \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f url, \u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441 IML.  <\/p>\n<ul>\n<li><b>Post<\/b><br \/> \n<pre><code class=\"cs\">@(Html.When(JqueryBind.Change)       .AjaxPost(Url.Dispatcher().Push&lt;AddAcoGroupCommand&gt;(new {Value = Selector.Jquery.Self() } ))       .OnSuccess(dsl =&gt; dsl.Utilities.Window.Alert(&quot;Success&quot;))       .AsHtmlAttributes()       .ToCheckBox(true)) <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 (\u0435\u0441\u043b\u0438 Value \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 AddAcoGroupCommand \u0431\u0443\u0434\u0435\u0442 exception) \u043f\u043e\u043b\u0435\u0439 \u0431\u0443\u0434\u0435\u0442.<\/i>   <\/li>\n<li><b>Post form<\/b><br \/> \n<pre><code class=\"cs\">@model AddAcoGroupCommand &lt;form action=&quot;@Url.Dispatcher().Push(new AddAcoGroupCommand())&quot;&gt;     @Html.HiddenFor(r=&gt;r.Id)     &lt;input type=&quot;submit&quot;\/&gt; &lt;\/form&gt; <\/code><\/pre>\n<p>  <\/li>\n<li><b>Render View <\/b><br \/> \n<pre><code class=\"cs\">@(Html.When(JqueryBind.InitIncoding)       .AjaxGet(Url.Dispatcher().AsView(&quot;~\/Views\/Patient\/BenefitListControl.cshtml&quot;))       .OnSuccess(dsl =&gt; dsl.Self().Core().Insert.Html())       .AsHtmlAttributes()       .ToDiv()) <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 template<\/i>   <\/p>\n<pre><code class=\"cs\">var urlTmpl  = Url.Dispatcher().AsView(&quot;~\/Views\/Medication\/MedicationTmpl.cshtml&quot;); dsl.Self().Core().Insert.WithTemplateByUrl(urlTemplate).Append(); <\/code><\/pre>\n<p>  <\/li>\n<li><b>Render model <\/b><br \/> \n<pre><code class=\"cs\">@(Html.When(JqueryBind.InitIncoding)       .AjaxGet(Url.Dispatcher()       .Model( new BenefitModel()                   {                           GroupName = Selector.Incoding.QueryString&lt;BenefitModel&gt;(r=&gt;r.GroupName),                           IsPrimary = true                   })       .AsView(&quot;~\/Views\/Patient\/BenefitListControl.cshtml&quot;))       .OnSuccess(dsl =&gt; dsl.Self().Core().Insert.Html())       .AsHtmlAttributes()       .ToDiv()) <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Selector (\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435) \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 url \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u043f\u0440\u0438\u0431\u0435\u0433\u0430\u0442\u044c \u043a \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044e routes \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435.<\/i>  <\/li>\n<\/ul>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0432 <a href=\"https:\/\/github.com\/IncodingSoftware\/inc-todo\">Inc-todo<\/a><\/i><\/p>\n<h4>Action Attributes <\/h4>\n<p>  \u042d\u0442\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0410\u041e\u041f (\u0410\u0441\u043f\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0301\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u200e), \u0447\u0430\u0441\u0442\u044b\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u043c \u0433\u0434\u0435 \u043e\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f:  <\/p>\n<ul>\n<li>\u041e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c DispatcherController<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u0435\u043d, \u0435\u0441\u043b\u0438 \u0412\u044b \u043f\u0438\u0448\u0438\u0442\u0435 CRM \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u044f \u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439<\/i>   <\/li>\n<li>Dispatcher event \u2014 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u0441\u0435 Command\/Query \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0435\u0434\u0438\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u0430\u043a \u043f\u0440\u0438 Action attributes.<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0430\u043a\u0446\u0435\u043d\u0442 \u0441 Action \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u043d\u0430 Command\/Query<\/i>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f <\/h4>\n<p>  \u0412 \u0440\u0430\u043c\u043a\u0430\u0445 Incoding Framework \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u043b\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 (\u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 js framework \u0442\u0443\u0442 Server\/Client \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0435) \u0438 MVD \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0441 \u043d\u0435\u0439.   <\/p>\n<pre><code class=\"cs\">@(using(Html.When(JqueryBind.InitIncoding)                                .Direct()                          .OnSuccess(dsl =&gt; dsl.Self().Core().Form.Validation.Parse())                          .When(JqueryBind.Submit)                          .PreventDefault()                          .Submit()                          .OnError(dsl =&gt; dsl.Self().Core().Form.Validation.Refresh())                          .AsHtmlAttributes()                          .ToBeginForm(Url.Dispatcher().Push(new AddUserCommand())))) {  @Html.TextBoxFor(r=&gt;r.Name)  @Html.ValidationMessageFor(r=&gt;r.Name) } <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0439 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0444\u043e\u0440\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c html helper <\/i><br \/>  \u041a\u043e\u0434 \u0437\u043d\u0430\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043d\u0430 asp.net mvc \u043f\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c\u0443 Html.BeginForm (\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432 iml \u0432 html attributes), \u043d\u043e \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u0438\u044f\u043c\u0438:  <\/p>\n<ul>\n<li>\u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u044b \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438<\/li>\n<li>\u041f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044e Submit \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u0447\u0442\u043e\u0431\u044b \u0444\u043e\u0440\u043c\u0430 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c) \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f ajax \u0434\u0435\u043b\u0430\u0435\u043c post \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 (Url.Dispatcher().Push(new AddUserCommand()) <\/li>\n<li>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 (\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439, \u0430 \u043d\u0435 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u043e\u0439) \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0443 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 Model State (\u043d\u0438\u0436\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439)<\/li>\n<\/ul>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 Validation.Refresh \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e Push \u0432 dispatcher contoller  <\/p>\n<pre><code class=\"cs\">     if (!ModelState.IsValid)         return IncodingResult.Error(ModelState)       try      {          dispatcher.Push(composite);          return IncodingResult.Success();       }       catch (IncWebException exception)       {                 foreach (var pairError in exception.Errors)                 {                     foreach (var errorMessage in pairError.Value)                         ModelState.AddModelError(pairError.Key, errorMessage);                 }                 return IncodingResult.Error(ModelState)       } <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0438\u0437-\u0437\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438, \u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c Incoding Framework \u0430\u0431\u0441\u0442\u0440\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u043d \u043e\u0442 \u044d\u0442\u0438\u0445 \u0434\u0435\u0442\u0430\u043b\u0435\u0439 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 TryPush \u0438\u043b\u0438 MVD push<\/i><br \/>  \u0412 catch \u043c\u044b \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e IncWebException (\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c ModelState), \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 exception \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043d\u0430 \u0441\u043e\u0432\u0435\u0441\u0442\u044c global.asax.<\/p>\n<h6>\u0410 \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u0440\u0430\u043d\u044c\u0448\u0435 ?<\/h6>\n<p>  \u041e\u0442\u0432\u0435\u0442 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0435\u043c \u0436\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0431\u0430\u0437\u0435 Incoding Framework \u043b\u0443\u0447\u0448\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c asp.net mvc  <\/p>\n<pre><code class=\"cs\">public ActionResult Add(AddUserCommand command) {     if (ModelState.IsValid)         return View(command);      return Execute(command); } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 ModelState \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0438, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f View, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 command (\u0445\u043e\u0440\u043e\u0448\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Container \u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u0436\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u043d\u043e\u0432\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c), \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u0422\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0434\u0435\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430:  <\/p>\n<ul>\n<li>\u0417\u0430\u043d\u043e\u0432\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0430, \u0447\u0442\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0440\u0430\u0444\u0438\u043a <\/li>\n<li>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f html (\u043f\u0443\u0441\u0442\u044c \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 json), \u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c action, \u043a\u0430\u043a API \u0434\u043b\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 (\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445) \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/li>\n<\/ul>\n<h4>\u0418\u0442\u043e\u0433<\/h4>\n<p>  MVD \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0441\u043e\u044e\u0437\u043d\u0438\u043a\u043e\u043c \u0434\u043b\u044f \u0431\u043e\u0440\u044c\u0431\u044b \u0441 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u043c\u0438 Action, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442 \u043a \u00ab\u0440\u0430\u0437\u0431\u0443\u0445\u0430\u043d\u0438\u044e\u00bb \u043a\u043e\u0434\u0430, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e \u043d\u0430 \u043f\u043e\u0437\u0434\u043d\u0438\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. MVD \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437 IML, \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Selector \u0432 routes, \u0447\u0442\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e \u0441\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438, \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432 \u00ab\u0440\u0443\u0447\u043d\u0443\u044e\u00bb (pure js) \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. <br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 MVD \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d (\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c) \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u043d\u043e \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c Controller \u0438 Action \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 (\u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u043e 5% \u2014 10%) \u0441\u043b\u0443\u0447\u0430\u0435\u0432.<\/p>\n<h4>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u0440\u0430\u0434\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0440\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u044f\u0436 ?<\/h4>\n<p>  \u0415\u0441\u043b\u0438 MVD \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u043a\u043e\u0434 \u043d\u0430 10-15% \u0438 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u0442\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043d\u043e \u043c\u044b \u043f\u043e\u0448\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0445\u0435\u043c\u0443 end point (\u0438\u0434\u0435\u044f \u0432\u0437\u044f\u0442\u0430 \u0443 wcf endpoint)\u2026 <\/p>\n<h5>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u0430\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f ?<\/h5>\n<p>  <\/p>\n<h6>\u0414\u0438\u0430\u043b\u043e\u0433 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c api \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/h6>\n<p>  <\/p>\n<ul>\n<li><b>Api<\/b> \u2014 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \/GetUsers?Active=true <\/li>\n<li><b>Api<\/b> \u2014 \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f user ( Comment, City, State ) <\/li>\n<li><b>Api<\/b> \u2014 \u043e, \u0447\u0443\u0442\u044c \u043d\u0435 \u0437\u0430\u0431\u044b\u043b City \u044d\u0442\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \/GetCities <\/li>\n<li><b>Api<\/b> \u2014 \u0438 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442, \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a \u043f\u0440\u043e\u0441\u0438\u043b, \u0447\u0442\u043e\u0431\u044b State \u0431\u044b\u043b \u0447\u0438\u0441\u043b\u043e\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u0443\u0447\u0442\u0438 \u044d\u0442\u043e <\/li>\n<li><b>\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/b> \u2014 \u043e\u043a, \u043e\u043f\u0438\u0448\u0438 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u0438 \u043d\u0430\u0437\u043e\u0432\u0438 %sitename%-api-%current-version% <br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f %current-version%, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0434\u0435 <\/i>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h6>\u0422\u043e\u0442 \u0436\u0435 \u0434\u0438\u0430\u043b\u043e\u0433, \u043d\u043e \u0441 mvd end-points<\/h6>\n<p>  <\/p>\n<ul>\n<li><b>Api<\/b> \u2014 \u043e\u0431\u043d\u043e\u0432\u0438\u043b \u043a\u043e\u0434 <\/li>\n<li><b>\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/b> \u2014 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c appDomain\/Dispatcher\/Endpoints? <\/li>\n<li><b>Api<\/b> \u2014 \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0442\u0430\u043c \u043a\u0441\u0442\u0430\u0442\u0438 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430 \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c command\/query<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430, \u0442\u0430\u043a \u0436\u0435 \u0443\u0434\u043e\u0431\u043d\u0430 \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 API, \u0442\u0430\u043a \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0434\u0435\u0442 \u0431\u0435\u0437 UI (user interface) \u0438 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c (unit test \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u0434, \u043d\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u044b) \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0441\u044f \u0430\u0432\u0442\u043e-\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u043e\u0439<\/i>  <\/li>\n<\/ul>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: <a href=\"http:\/\/mvd-endpoint.incframework.com\/\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u043d\u043d\u0435\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u043e \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u043e\u0431\u0449\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043a \u0434\u0435\u0442\u0430\u043b\u044f\u043c, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443. <\/i><\/p>\n<p>  <b>\u0412\u044b\u0432\u043e\u0434<\/b>: \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 API \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u0440\u043e\u043c\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0432 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435, \u0447\u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0437-\u0437\u0430 \u0443\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e.<\/p>\n<p>  <b>P.S. <\/b> \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f (\u043f\u043e\u043a\u0430 beta) Incoding Framework \u0432 nuget, \u0433\u0434\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043e\u043a. \u042f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 (\u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430 \u043d\u0430\u0448\u0435\u043c <a href=\"http:\/\/youtrack.incoding.biz\/issues\/Inc?q=%231.3+\">bugtracker<\/a>)  <\/p>\n<ul>\n<li> \u0423\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0439<br \/> \n<pre><code class=\"cs\">Break.If(r=&gt;r.Is(()=&gt;Selector.Jquery.Self()).And.Is(()=&gt;&quot;id&quot;.ToId()== 12)) \/\/ Old Break.If(()=&gt;Selector.Jquery.Self() && id.ToId() == 12) \/\/ New <\/code><\/pre>\n<p>   <\/li>\n<li>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f EF, RavenDB, MongoDb \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 (\u043e\u0434\u043d\u0430 command \u0438 \u0440\u0430\u0437\u043d\u044b\u0435 ORM \u043d\u0430 <a href=\"https:\/\/github.com\/IncodingSoftware\/Inc-Orm-Benchmark\">github<\/a> \u0438 <a href=\"https:\/\/github.com\/IncodingSoftware\/inc-todo-raven\">inc-todo-ravendb<\/a>)  <\/li>\n<li>\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430<br \/> \n<pre><code class=\"cs\">inDsl.Core().JQuery.Attributes.SetAttr(HtmlAttribute.Checked) \/\/ Now inDsl.Attr.Set(HtmlAttr.Checked) \/\/ Future <\/code><\/pre>\n<p>  <\/li>\n<\/ul>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 beta (\u0432 \u043a\u043e\u043d\u0446\u0435 \u043c\u0430\u044f \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f) \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0430 \u044d\u0442\u0443 \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0440\u044f\u0434 \u0437\u0430\u0434\u0430\u0447, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430<\/i>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/221585\/\"> http:\/\/habrahabr.ru\/post\/221585\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/04f\/1ff\/a67\/04f1ffa674527af919709d4cc983a7e9.png\" alt=\"image\"\/><br \/>  \u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0441\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0445\u043e\u0447\u0443 \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Incoding Framework.<br \/>  <b>Model View Dispatcher (MVD)<\/b> \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u043e\u0442 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 (\u0430 \u0438\u043c\u0435\u043d\u043d\u043e asp.net mvc controller) \u0438 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-221585","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/221585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221585"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/221585\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}