{"id":259844,"date":"2015-06-22T15:43:02","date_gmt":"2015-06-22T11:43:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259844"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259844","title":{"rendered":"\u041c\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 ASP.NET MVC \u0432 Visual Studio 2015 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u041c\u0418\u0421"},"content":{"rendered":"<p>             \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u0443\u0440\u0441\u043e\u0432\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 (\u041c\u0418\u0421) \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0447\u0430\u0441\u0442\u043d\u043e\u0439 \u043a\u043b\u0438\u043d\u0438\u043a\u0438 \u043f\u043e \u043b\u0435\u0447\u0435\u043d\u0438\u044e \u044d\u043f\u0438\u043b\u0435\u043f\u0441\u0438\u0438. <\/p>\n<p>  \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 \u043a\u043b\u0438\u043d\u0438\u043a\u0435 \u0443\u0436\u0435 \u0431\u044b\u043b\u0430, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043e\u043d\u0430 \u0431\u044b\u043b\u0430 \u0435\u0449\u0435 \u0432 \u0434\u0430\u043b\u0435\u043a\u043e\u043c 1998 \u0433\u043e\u0434\u0443 \u0432 Microsoft Access \u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u043f\u0440\u0438\u0447\u0435\u043c \u0434\u0430\u0436\u0435 \u0441 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c), \u043d\u043e \u0432\u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043e\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u2014 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0437\u0430\u0432\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0435\u0435 \u0441\u0442\u0430\u043b\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0417\u043d\u0430\u0447\u0438\u0442, \u0434\u0430\u0432\u043d\u043e \u043d\u0430\u0437\u0440\u0435\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u043e\u0432\u043e\u0435!<\/p>\n<p>  \u0421\u043a\u0430\u0437\u0430\u043d\u043e \u2014 \u0441\u0434\u0435\u043b\u0430\u043d\u043e. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u043e (\u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0441\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0432\u0443\u044e \u043f\u043e\u0440\u0430) \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0435\u0431\u044f. \u042f \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 ASP.NET MVC, \u0431\u044b\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 C# \u0438 \u043e\u0431\u0449\u0438\u043c\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c\u0438 MVC, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043a\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e Visual Studio 2015 RC \u0438 \u043f\u0440\u0438\u043d\u044f\u043b\u0441\u044f \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0432\u0448\u0438\u043c\u0438\u0441\u044f \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u043c\u0438 \u043a\u0430\u043c\u043d\u044f\u043c\u0438. \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0435\u043b\u0430\u043b \u0431\u043b\u043e\u0433 \u043f\u043e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0443 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e MVC \u0444\u0440\u0435\u0439\u043c\u0444\u043e\u0440\u043a\u0430 \u0438 \u0445\u043e\u0447\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c!<\/p>\n<h3>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h3>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0434\u0438\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043b\u0438\u043d\u0438\u043a\u0438 \u043f\u043e \u043b\u0435\u0447\u0435\u043d\u0438\u044e \u044d\u043f\u0438\u043b\u0435\u043f\u0441\u0438\u0438. \u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u0441 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u0446\u0435\u043d\u0442\u0440\u0430 \u0431\u044b\u043b\u0438 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f:  <\/p>\n<ul>\n<li>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432\u0441\u0435\u0445 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445;<\/li>\n<li>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u043e \u0432\u0441\u0435\u0445 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043c\u0435\u0441\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0434\u0430\u043d\u0438\u044f\u0445;<\/li>\n<li>\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432;<\/li>\n<li>\u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0435\u043c\u043e\u0432;<\/li>\n<li>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439, \u0432\u0438\u0434\u0435\u043e\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430;<\/li>\n<li>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439 (\u0434\u0438\u0430\u0433\u043d\u043e\u0437\u044b, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u2026);<\/li>\n<li>\u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f;<\/li>\n<li>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u044f\u043c \u0438\u0441\u0442\u043e\u0440\u0438\u0439 \u0431\u043e\u043b\u0435\u0437\u043d\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u041e\u0442\u043f\u0440\u0430\u0432\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 ASP.NET MVC \u2014 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043f\u043e\u0441\u043e\u0431\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"http:\/\/www.asp.net\/mvc\">http:\/\/www.asp.net\/mvc<\/a>. \u0414\u043b\u044f \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u043e\u0442 \u044d\u0442\u043e\u0433\u043e <a href=\"http:\/\/www.asp.net\/mvc\/overview\/getting-started\/introduction\/getting-started\">getting started<\/a>. \u042f \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"http:\/\/habrahabr.ru\/post\/175999\/\">\u0443\u0447\u0435\u0431\u043d\u0438\u043a \u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a>, \u043d\u043e \u043b\u0438\u0447\u043d\u043e \u043c\u043d\u0435 \u043e\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>  \u0418\u0437 <a href=\"http:\/\/www.asp.net\/mvc\/overview\/getting-started\/introduction\/getting-started\">\u043f\u043e\u0441\u043e\u0431\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 Microsoft<\/a> (\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438, \u0434\u0430\u0431\u044b \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c) \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u0430 \u043e\u0431\u0449\u0430\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u0440\u0430\u0431\u043e\u0442\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u043d\u043e \u043d\u0435 \u044f\u0441\u043d\u043e, \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u044f \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c.<\/p>\n<p>  \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043c\u0438, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0440\u0430\u0431\u043e\u0442\u0435.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u043e\u0435 ASP.NET \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e \u043f\u043e Ctrl-F5:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/5d8\/14b\/df5\/5d814bdf55544375aa12ef387f739f13.PNG\" width=\"50%\" alt=\"image\"\/><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/358\/1e0\/c44\/3581e0c44a944084ba9b211f5114b5b0.PNG\" width=\"50%\"\/><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d6b\/d5c\/fef\/d6bd5cfef34f4783a7e57cfe37313746.PNG\" width=\"50%\"\/><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/79c\/6af\/b5c\/79c6afb5c7a648ed88e3537ca4009f6e.PNG\" width=\"50%\"\/>  <\/div>\n<\/div>\n<p>  <\/p>\n<h4>\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0434\u0438\u044f \u043d\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0441\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0440\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 Access \u043f\u0440\u043e\u0434\u0438\u043a\u0442\u043e\u0432\u0430\u043b\u0430 \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u0443\u044e \u0441\u0445\u0435\u043c\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c, \u043f\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/38b\/dbf\/689\/38bdbf68983c4a27abfb678e27c20ad6.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0430\u0446\u0438\u0435\u043d\u0442 (\u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435), \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u0435\u043c\u0430\u043c\u0438 (\u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0430\u0447). \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0440\u0438\u0435\u043c\u0435 \u0432\u0440\u0430\u0447 \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432: \u0430\u043d\u0430\u043c\u043d\u0435\u0437\u044b, \u0434\u0438\u0430\u0433\u043d\u043e\u0437\u044b, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u0442.\u0434. \u0410 \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u0430\u043d\u0430\u043c\u043d\u0435\u0437, \u0434\u0438\u0430\u0433\u043d\u043e\u0437 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  \u041d\u0443 \u0447\u0442\u043e \u0436, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b Pacient.cs \u0432 \u043f\u0430\u043f\u043a\u0435 Models \u0438 \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>public class DiagnosisType {     public int ID { get; set; }     [DisplayName(&quot;\u0414\u0438\u0430\u0433\u043d\u043e\u0437&quot;)]     public String name { get; set; }     [DisplayName(&quot;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435&quot;)]     [DataType(DataType.MultilineText)]     public String description { get; set; } } public class Diagnosis {     public int ID { get; set; }     [DisplayName(&quot;\u0414\u0438\u0430\u0433\u043d\u043e\u0437&quot;)]       public DiagnosisType type { get; set; }     [DisplayName(&quot;\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439&quot;)]     [DataType(DataType.MultilineText)]     public String comments { get; set; }  } public class VisitDate {     public int ID { get; set; }     public int doctorID { get; set; }     [DisplayName(&quot;\u0414\u0430\u0442\u0430 \u043f\u0440\u0438\u0435\u043c\u0430&quot;)]     public DateTime date { get; set; }     public List&lt;Anamnesis&gt; anamnesis { get; set; }     public List&lt;Debut&gt; debutes { get; set; }     public List&lt;Diagnosis&gt; diagnoses { get; set; }     public List&lt;Research&gt; researches { get; set; }     public List&lt;Assigment&gt; assigments { get; set; }     public List&lt;Neurostatus&gt; neurostatuses { get; set; }     public List&lt;Review&gt; reviews { get; set; }     public List&lt;Syndrome&gt; syndromes { get; set; } } public enum Sex {     [Display(Name = &quot;\u041f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0432\u044b\u0439&quot;)]     A,     [Display(Name = &quot;\u0416\u0435\u043d\u0441\u043a\u0438\u0439&quot;)]     F,     [Display(Name = &quot;\u041c\u0443\u0436\u0441\u043a\u043e\u0439&quot;)]     M,     [Display(Name = &quot;\u041d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e&quot;)]     N,     [Display(Name = &quot;\u0414\u0440\u0443\u0433\u043e\u0439&quot;)]     O,     [Display(Name = &quot;\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439&quot;)]     U } public class Pacient {     public int ID { get; set; }     [DisplayName(&quot;\u041b\u0435\u0447\u0430\u0449\u0438\u0439 \u0432\u0440\u0430\u0447&quot;)]     public Doctor doctor { get; set; }     [DisplayName(&quot;\u0424\u0418\u041e&quot;)]     public String name { get; set; }     [DisplayName(&quot;\u041d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b&quot;)]     public String cart { get; set; }     [DisplayName(&quot;\u0422\u0435\u043b\u0435\u0444\u043e\u043d&quot;)]     [DataType(DataType.PhoneNumber)]     [Phone]     public String phone { get; set; }     [DisplayName(&quot;\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435&quot;)]     [DataType(DataType.Date)]     public DateTime dateOfregistration { get; set; }     [DisplayName(&quot;\u041f\u043e\u043b&quot;)]      public Sex sex { get; set; }     [DisplayName(&quot;\u0414\u0430\u0442\u0430 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f&quot;)]      [DataType(DataType.Date)]     [DisplayFormat(DataFormatString = &quot;{0:yyyy-MM-dd}&quot;, ApplyFormatInEditMode = true)]     public DateTime birthday { get; set; }     [DisplayName(&quot;\u041c\u0430\u0442\u044c&quot;)]     public String mother { get; set; }     [DisplayName(&quot;\u041e\u0442\u0435\u0446&quot;)]     public String father { get; set; }     [DisplayName(&quot;\u0410\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u0436\u0438\u0432\u0430\u043d\u0438\u044f&quot;)]      public String adress { get; set; }     [DisplayName(&quot;\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438&quot;)]     [DataType(DataType.Html)]     [AllowHtml]     public String comments { get; set; }     public List&lt;VisitDate&gt; visits { get; set; } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438.<\/p>\n<p>  \u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f:  <\/p>\n<ul>\n<li> <b>[DisplayName(\u00ab\u0414\u0438\u0430\u0433\u043d\u043e\u0437\u00bb)]<\/b> \u2014 \u0437\u0430\u0434\u0430\u0435\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0435 \u0438\u043c\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0445;<\/li>\n<li> <b>[DataType(DataType.MultilineText)]<\/b> \u2014 \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f textarea;<\/li>\n<li><b> [AllowHtml]<\/b> \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u0435 html, \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e.<\/li>\n<\/ul>\n<p>  \u041e\u0431\u0449\u0438\u0435 \u0438\u0434\u0435\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0432 Entity Framework:  <\/p>\n<ul>\n<li> \u041e\u0434\u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c (\u043e\u0434\u0438\u043d \u043a\u043b\u0430\u0441\u0441) \u2013 \u043e\u0434\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430;<\/li>\n<li> \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u2013 \u043f\u043e\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445;<\/li>\n<li> \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c NULL, \u043a \u0438\u043c\u0435\u043d\u0438 \u0442\u0438\u043f\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0430;<\/li>\n<li> \u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u0442\u043e\u0436\u0435 \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u044c\u044e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043f\u043e\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u044d\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438;<\/li>\n<li> \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043f\u0438\u0441\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u0432\u044f\u0437\u0438 \u043e\u0434\u0438\u043d \u043a\u043e \u043c\u043d\u043e\u0433\u0438\u043c. \u0412 \u043c\u043e\u0434\u0435\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043b\u044e\u0447;<\/li>\n<li> \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 \u0434\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u0432\u044f\u0437\u0438 \u043c\u043d\u043e\u0433\u0438\u0435-\u043a\u043e-\u043c\u043d\u043e\u0433\u0438\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0432\u044f\u0437\u0438.<\/li>\n<\/ul>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043c\u044b \u043e\u0444\u043e\u0440\u043c\u0438\u043b\u0438 \u0432\u0441\u0435 \u043c\u043e\u0434\u0435\u043b\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c Entity Framework&#8217;\u0443, \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. <b>\u041e\u0434\u0438\u043d \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u2014 \u043e\u0434\u043d\u0430 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/b>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>public class PacientDBContext : DbContext {     public DbSet&lt;Pacient&gt; pacients { get; set; }     public DbSet&lt;AnamnesisEventType&gt; anamnesisTypes { get; set; }     public DbSet&lt;Anamnesis&gt; anamneses { get; set; }     public DbSet&lt;Debut&gt; debutes { get; set; }     public DbSet&lt;DebutType&gt; debuteTypes { get; set; }     public DbSet&lt;Diagnosis&gt; diagnoses { get; set; }     public DbSet&lt;DiagnosisType&gt; diagnosisTypes { get; set; }     public DbSet&lt;Research&gt; researches { get; set; }     public DbSet&lt;ResearchType&gt; researchTypes { get; set; }     public DbSet&lt;Medicine&gt; medicines { get; set; }     public DbSet&lt;MedicineType&gt; medicineTypes { get; set; }     public DbSet&lt;Neurostatus&gt; neurostatuses { get; set; }     public DbSet&lt;NeuroStatusType&gt; neuroStatusTypes { get; set; }     public DbSet&lt;Assigment&gt; assigments { get; set; }     public DbSet&lt;AssigmentType&gt; assigmentTypes { get; set; }     public DbSet&lt;Syndrome&gt; syndromes { get; set; }     public DbSet&lt;SyndromeType&gt; syndromeTypes { get; set; }     public DbSet&lt;Review&gt; reviews { get; set; }     public DbSet&lt;VisitDate&gt; visits { get; set; }     public DbSet&lt;Doctor&gt; doctors { get; set; }  } &lt;\/lang&gt; &lt;\/spoiler&gt; \u0420\u0430\u0431\u043e\u0442\u0430, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441\u043a\u0443\u0447\u043d\u0430\u044f, \u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u0441\u044f \u043c\u043e\u0440\u0435. \u041e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430\u044f \u043c\u0430\u043b\u043e\u0441\u0442\u044c - \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0432 Web.config \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  &lt;spoiler title=&quot;\u041a\u043e\u0434 \u0434\u043b\u044f Web.config&quot;&gt; &lt;source lang=&quot;xml&quot;&gt; &lt;connectionStrings&gt;     &lt;add name=&quot;DefaultConnection&quot; connectionString=&quot;Data Source=(LocalDb)\\v11.0;AttachDbFilename=|DataDirectory|\\Users.mdf;Initial Catalog=aspnet-WebApplication2-20150526031246;Integrated Security=True&quot; providerName=&quot;System.Data.SqlClient&quot; \/&gt;          &lt;add name=&quot;PacientDBContext&quot; connectionString=&quot;Data Source=(LocalDB)\\v11.0;AttachDbFilename=|DataDirectory|\\Pacients.mdf;Integrated Security=True&quot; providerName=&quot;System.Data.SqlClient&quot; \/&gt;   &lt;\/connectionStrings&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u041f\u043e\u0434\u0441\u0442\u0430\u0432\u0430!<\/b> \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 Default Context \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e <i>Data Source=(LocalDb)\\MSLocalDB<\/i>, \u043f\u0435\u0440\u0435\u0434 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e SQL Server Express 2014, \u0430 \u0432\u043e\u0442 \u043c\u043e\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u043e \u043d\u0435\u043c \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u043b! \u041b\u0443\u0447\u0448\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Express 2012 (\u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0442\u0443) \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 <b>v11.0<\/b>.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445\u2026 \u0418\u043b\u0438 \u043d\u0435\u0442? \u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u044d\u0442\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c. \u041d\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u043b\u0435\u0432\u0430 \u0432 \u041e\u0431\u043e\u0437\u0440\u0435\u0432\u0430\u0442\u0435\u043b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u043d\u0430\u0441 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3be\/e9e\/9ef\/3bee9e9ef2694821ad5689dfd67e4362.PNG\"\/><\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0430\u0434\u043e \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043b\u0438 \u0447\u0442\u043e \u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u043d\u0435\u0442\u0443. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0431\u043e\u0442\u044b: \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <i>Enable-Migrations \u2013EnableAutomaticMigrations -ContextTypeName WebApplication2.Models.PacientDBContex<\/i>, \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0434\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>update-database<\/i>. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u2014 <a href=\"https:\/\/msdn.microsoft.com\/ru-ru\/data\/jj554735.aspx\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/05d\/d7c\/08d\/05dd7c08dde549f1b7627492c2f29c2f.png\"\/><\/p>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432<\/h4>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438-\u0440\u0443\u0447\u043d\u043e\u0439. \u041d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2e8\/c8c\/dea\/2e8c8cdea2004c80a94a27d5ef801481.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e78\/c18\/064\/e78c18064e9a4a5fae2f82f4102c1296.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/5e5\/37d\/738\/5e537d7382394fd8b3b9336187f0f544.PNG\"\/>  <\/div>\n<\/div>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0434\u0430\u043d\u043d\u044b\u0445! \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e, \u043a\u0430\u043a \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 Django\u2026 \u0438\u043b\u0438 \u043d\u0435\u0442?<\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0438 \u043d\u0435\u0442! \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043d\u0438\u043a\u0430\u043a \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0441 \u0434\u0430\u0442\u043e\u0439 \u043f\u0440\u0438\u0435\u043c\u0430, \u0445\u043e\u0442\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0442\u0430\u043a\u0430\u044f \u0441\u0432\u044f\u0437\u044c \u0435\u0441\u0442\u044c. \u0421 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435! \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 PacientsContrtoller.cs \u043c\u0435\u043d\u044f\u0435\u043c \u043c\u0435\u0442\u043e\u0434 Details:<\/p>\n<pre><code class=\"cs\">public ActionResult Details(int? id) {     if (id == null)     {         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);     }     \/\/db.     Pacient pacient = db.pacients         .Include(p=&gt;p.doctor)             .Include(p =&gt; p.visits.Select(w =&gt; w.anamnesis.Select(r=&gt;r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.debutes.Select(r =&gt; r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.diagnoses.Select(r =&gt; r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.researches.Select(r =&gt; r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.anamnesis.Select(r =&gt; r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.neurostatuses.Select(r =&gt; r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.assigments.Select(r =&gt; r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.syndromes.Select(r =&gt; r.type)))             .Include(p =&gt; p.visits.Select(w =&gt; w.reviews))             .Where(p=&gt;p.ID == id).Single();     pacient.visits.Sort(delegate (VisitDate t1, VisitDate t2) { return t2.date.CompareTo(t1.date); });     return View(pacient); } <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0443\u0436\u0430\u0441\u043d\u043e \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u043e\u043c LINQ \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043c\u044b \u043f\u0440\u043e\u0441\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f Include, \u0430 \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u2014 Select.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438\u043b\u0438 \u043f\u043e \u0441\u043b\u043e\u0432\u0443 \u0432 \u0440\u0435\u0437\u044e\u043c\u0435 \u043f\u0440\u0438\u0435\u043c\u0430 \u0442\u043e\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0445\u0438\u0442\u0440\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<pre><code class=\"cs\">public ActionResult SearchByName(String name = &quot;&quot;, String mode = &quot;name&quot;) {                  if (mode.Equals(&quot;name&quot;))         return PartialView(db.pacients.Where(p =&gt; p.name.Contains(name)).ToList());     else     {         var results = db.pacients.Where(p =&gt; p.visits.Any(vd =&gt; vd.reviews.Any(r =&gt; r.comments.ToLower().Contains(name.ToLower()))));         return PartialView(results.ToList());     } } <\/code><\/pre>\n<p>  \u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e, \u0447\u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u2014 \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432 GET \u0437\u0430\u043f\u0440\u043e\u0441\u0435 (\u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u043d\u0430\u043a\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430).<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u043e \u0441\u0443\u0442\u0438 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 (\u0430\u043d\u0430\u043c\u043d\u0435\u0437\u044b, \u0434\u0438\u0430\u0433\u043d\u043e\u0437\u044b, \u0440\u0435\u0437\u044e\u043c\u0435&#8230;) \u044f \u0441\u043e\u0437\u0434\u0430\u043b 4 \u043d\u043e\u0432\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u0430 \u0432 \u0437\u0430\u043c\u0435\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445, \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u044b\u0435 (partial) \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e AJAX:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public ActionResult pacientDetails(int? id) {     if (id == null)     {         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);     }     Anamnesis anamnesis = db.anamneses.Include(p =&gt; p.type).Where(p =&gt; p.ID == id).First();     if (anamnesis == null)     {         return HttpNotFound();     }     return PartialView(&quot;~\/views\/Anamnesis\/pacientDetails.cshtml&quot;, anamnesis); }  \/\/ GET: Anamnesis\/Create public ActionResult pacientCreate(int visitID, int num) {     newAnamnesis na = new newAnamnesis();     na.visitID = visitID;     na.num = num;     na.anamnesis = new Anamnesis();     na.eventTypes = db.anamnesisTypes.ToList();     return PartialView(na); } public ActionResult Create(newAnamnesis data) {     VisitDate visit = db.visits.Include(v =&gt; v.anamnesis).Where(v =&gt; v.ID == data.visitID).First();      if (visit == null)         return RedirectToAction(&quot;Index&quot;, &quot;Pacients&quot;);      Pacient pacient = db.pacients.Where(p =&gt; p.visits.Any(v =&gt; v.ID == data.visitID)).First();     if (pacient == null)         return RedirectToAction(&quot;Index&quot;, &quot;Pacients&quot;);      if (ModelState.IsValid)     {         AnamnesisEventType type = db.anamnesisTypes.Where(a =&gt; a.ID == data.anamnesis.type.ID).First();         data.anamnesis.type = type;         visit.anamnesis.Add(data.anamnesis);                db.SaveChanges();         return PartialView(&quot;\/views\/Anamnesis\/pacientDetails.cshtml&quot;, data.anamnesis);     }     return PartialView(&quot;\/views\/Anamnesis\/pacientCreate.cshtml&quot;, data);  } \/\/ GET: Anamnesis\/Edit\/5 public ActionResult pacientEdit(int? id) {     if (id == null)     {         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);     }     Anamnesis anamnesis = db.anamneses.Include(p=&gt;p.type).Where(p=&gt;p.ID == id).First();                  if (anamnesis == null)     {         return HttpNotFound();     }     return PartialView(anamnesis); }  \/\/ POST: Anamnesis\/Edit\/5 [HttpPost] [ValidateAntiForgeryToken] public ActionResult pacientEdit([Bind(Include = &quot;ID,comments&quot;)] Anamnesis anamnesis) {     if (ModelState.IsValid)     {         db.Entry(anamnesis).State = EntityState.Modified;         db.SaveChanges();         return pacientDetails(anamnesis.ID);     }     return PartialView(anamnesis); }  \/\/ GET: Anamnesis\/Delete\/5 public ActionResult pacientDelete(int? id) {     if (id == null)     {         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);     }     Anamnesis anamnesis = db.anamneses.Find(id);     if (anamnesis == null)     {         return HttpNotFound();     }     db.anamneses.Remove(anamnesis);     db.SaveChanges();     return PartialView(); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h4>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0438 \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u0435\u043c \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0431\u0435\u0437 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>  \u041d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0434\u0432\u0443\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e JQuery \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432 &#8212; Views\/Pacient\/Details.cshtml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">@{     ViewBag.Title = &quot;Index&quot;; } &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-md-6&quot;&gt;         &lt;h2&gt;\u041f\u043e\u0438\u0441\u043a \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432&lt;\/h2&gt; &lt;\/div&gt;     &lt;div class=&quot;col-md-6&quot;&gt;         &lt;a href=&quot;\/Pacients\/Create\/&quot; class=&quot;btn btn-success pull-right&quot; style=&quot;margin-top: 20px; margin-right: 20px;&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-plus&quot;&gt;&lt;\/span&gt;\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c&lt;\/a&gt;     &lt;\/div&gt;     &lt;\/div&gt; &lt;div&gt;     &lt;form class=&quot;form-horizontal&quot;&gt;         &lt;div class=&quot;input-group input-group-lg col-md-12 bs-callout bs-callout-primary&quot;&gt;             &lt;label for=&quot;search&quot; class=&quot;sr-only&quot;&gt;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430&lt;\/label&gt;             &lt;div class=&quot;col-sm-10&quot;&gt;                 &lt;input type=&quot;text&quot; placeholder=&quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430&quot; name=&quot;name&quot; class=&quot;col-sm-10 form-control&quot; id=&quot;search&quot; \/&gt;             &lt;\/div&gt;             &lt;div class=&quot;col-sm-2&quot;&gt;                 &lt;input type='button' id=&quot;submit&quot; value='\u041f\u043e\u0438\u0441\u043a' class=&quot;btn&quot; \/&gt;              &lt;\/div&gt;             &lt;div class=&quot;col-sm-10&quot;&gt;                 &lt;label class=&quot;radio-inline&quot;&gt;                     &lt;input type=&quot;radio&quot; name=&quot;searchOptions&quot; id=&quot;searchByName&quot; value=&quot;name&quot; checked&gt; \u041f\u043e \u0438\u043c\u0435\u043d\u0438                 &lt;\/label&gt;                 &lt;label class=&quot;radio-inline&quot;&gt;                     &lt;input type=&quot;radio&quot; name=&quot;searchOptions&quot; id=&quot;reviewSearch&quot; value=&quot;review&quot;&gt; \u041f\u043e \u0440\u0435\u0437\u044e\u043c\u0435                 &lt;\/label&gt;             &lt;\/div&gt;              &lt;\/div&gt;      &lt;\/form&gt; &lt;\/div&gt;     &lt;div id=&quot;results&quot;&gt;&lt;\/div&gt;     &lt;script type=&quot;text\/javascript&quot;&gt;         $(document).ready(function () {             \/\/$('#submit').cha             $('#submit').click(function (e) {                 e.preventDefault();                 var name = $('#search').val();                 var mode = &quot;name&quot;;                 if ($(&quot;#reviewSearch&quot;).prop(&quot;checked&quot;))                 {                     mode = &quot;review&quot;                 }                 name = name.replace(new RegExp(&quot; &quot;, 'g'), &quot;%20&quot;);                 $('#results').load(&quot;\/Pacients\/SearchByName?name=&quot; + name + &quot;&mode=&quot;+mode);             });             $('#search').keypress(function (event) {                 if ($(&quot;#reviewSearch&quot;).prop(&quot;checked&quot;)) return;                 if (event.which == 13) {                     event.preventDefault();                 }                 var name = $('#search').val();                 var mode = &quot;name&quot;;                 if ($(&quot;#reviewSearch&quot;).prop(&quot;checked&quot;)) {                     mode = &quot;review&quot;                 }                 name = name.replace(new RegExp(&quot; &quot;, 'g'), &quot;%20&quot;);                 $('#results').load(&quot;\/Pacients\/SearchByName?name=&quot; + name + &quot;&mode=&quot; + mode);             });         });     &lt;\/script&gt;  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0428\u0430\u0431\u043b\u043e\u043d\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0410 \u0432\u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0428\u0430\u043f\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">@model WebApplication2.Models.Pacient  @{     ViewBag.Title = &quot;Details&quot;; } &lt;div class=&quot;row&quot;&gt;     &lt;div class=&quot;col-md-2&quot; style=&quot; margin-top: 30px;&quot;&gt;         &lt;a href=&quot;@Url.Action(&quot;Index&quot; )&quot; class = &quot;btn btn-default btn-lg&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-backward&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt; \u041d\u0430\u0437\u0430\u0434         &lt;\/a&gt;                  &lt;\/div&gt;     &lt;div class=&quot;col-md-6&quot;&gt;&lt;h2&gt;@Html.DisplayFor(model =&gt; model.name)&lt;\/h2&gt;       &lt;h4&gt;@Html.DisplayNameFor(model =&gt; model.doctor): @Html.DisplayFor(model =&gt; model.doctor.name)&lt;\/h4&gt;          &lt;\/div&gt;         @if (Model.visits.Count==0 || !(Model.visits.First().date.Equals(DateTime.Today)))         {             &lt;span  style=&quot; margin-top: 30px;margin-right: 30px;&quot; class=&quot;pull-right&quot;&gt;                 &lt;a href=&quot;@Url.Action(&quot;Create&quot;, &quot;visitDates&quot;, new {id=Model.ID })&quot; class=&quot;btn btn-default btn-primary btn-lg&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-pencil&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt; \u041d\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u0438\u0435\u043c&lt;\/a&gt;             &lt;\/span&gt;     } &lt;\/div&gt;   &lt;hr \/&gt;  @Html.Partial(&quot;~\/Views\/Pacients\/visitsView.cshtml&quot;, Model) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0428\u0430\u043f\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <i> <a href=\"http:\/\/habrahabr.ru\/users\/html\/\" class=\"user_link\">Html<\/a>.Partial(&quot;~\/Views\/Pacients\/visitsView.cshtml&quot;, Model)<\/i> \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043e\u0431\u0449\u0438\u0435 JS-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. VS2015 \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 AngularJS, \u043d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u2014 \u043f\u0440\u043e\u0449\u0435, \u0437\u0430\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435. \u0411\u043b\u0430\u0433\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0438\u0441\u044c \u0432\u0441\u0435\u0433\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b.<\/p>\n<p>  \u0412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u0435\u043c\u044b \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e \u0434\u0430\u0442\u0435 \u043f\u0440\u0438\u0435\u043c\u0430, \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u043a\u043b\u0430\u0434\u043a\u0430 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u0414\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0440\u0430\u0437\u043d\u0435\u0441\u0435\u043d\u043e \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Views\/Pacients\/visitsView.cshtml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\"> @model WebApplication2.Models.Pacient @using WebApplication2.Models  &lt;script&gt;     function Delete(controller, id) {         if (confirm(&quot;\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0431\u0435\u0437\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u043e \u044d\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c?&quot;)) {             $('#' + controller + 'Div' + id).load('\/' + controller + '\/pacientDelete\/' + id);             $('.' + controller + 'Div' + id).load('\/' + controller + '\/pacientDelete\/' + id);         }     }     function Cancel(controller, id) {         if (confirm(&quot;\u041b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u043e, \u043d\u043e \u043e\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u0438\u0435\u043c\u043e\u0432. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c?&quot;)) {             $(&quot;#&quot; + controller + &quot;Tab&quot;).find('#' + controller + 'Div' + id).load('\/' + controller + '\/pacientCancel\/' + id);             $(&quot;#&quot; + controller + &quot;Tab&quot;).find('.' + controller + 'Div' + id).load('\/' + controller + '\/pacientCancel\/' + id);         }     }     function CancelEdit(controller, id) {         $.get('\/' + controller + '\/pacientDetails\/' + id, function (data) {             res = $.parseHTML('&lt;div&gt;' + data + '&lt;\/div&gt;');             if ($(res).find('.' + controller + 'Div' + id).html() != &quot;&quot;) {                 var content = $(res).find('.' + controller + 'Div' + id).html();             }             else {                 var content = $(res).find('#' + controller + 'Div' + id).html();             }             $('#' + controller + 'Div' + id).html(content);             $('.' + controller + 'Div' + id).html(content);         });                      }     function LoadEditForm(controller, id) {         if ($(&quot;#&quot; + controller + &quot;Tab&quot;).hasClass(&quot;active&quot;))         {             $(&quot;#&quot; + controller + &quot;Tab&quot;).find('#' + controller + 'Div' + id).load('\/' + controller + '\/pacientEdit\/' + id);             $(&quot;#&quot; + controller + &quot;Tab&quot;).find('.' + controller + 'Div' + id).load('\/' + controller + '\/pacientEdit\/' + id);         }         else         {             $(&quot;#dateTab&quot;).find('#' + controller + 'Div' + id).load('\/' + controller + '\/pacientEdit\/' + id);             $(&quot;#dateTab&quot;).find('.' + controller + 'Div' + id).load('\/' + controller + '\/pacientEdit\/' + id);         }              }     function PostEditForm(controller, id, mce) {         if (mce == true) tinyMCE.triggerSave();         $.ajax({             type: &quot;POST&quot;,             url: '\/' + controller + '\/pacientEdit\/' + id,             data: $('.' + controller + 'Edit' + id).serialize() + $('#' + controller + 'Edit' + id).serialize(), \/\/ serializes the form's elements.             success: function (data) {                 res = $.parseHTML('&lt;div&gt;' + data + '&lt;\/div&gt;');                 if ($(res).find('.' + controller + 'Div' + id).html() != &quot;&quot;)                 {                     var content = $(res).find('.' + controller + 'Div' + id).html();                 }                 else {                     var content = $(res).find('#' + controller + 'Div' + id).html();                 }                 $('#' + controller + 'Div' + id).html(content);                 $('.' + controller + 'Div' + id).html(content);             }         });      }     function PostCreateForm(controller, num, mce) {         if (mce == true) tinyMCE.triggerSave();         $.ajax({             type: &quot;POST&quot;,             url: '\/' + controller + '\/Create\/',             data: $('#' + controller + 'Create').serialize(), \/\/ serializes the form's elements.             success: function (data) {                 res = $.parseHTML('&lt;div&gt;&lt;div&gt;' + data + '&lt;\/div&gt;&lt;\/div&gt;');                 $('#documentData' + num).prepend($(res).find('div').first().html());                 $('#' + controller + 'Tab').find('.tabContent').prepend($(res).find('div').first().html());                 $('#' + controller + 'Create').trigger('reset');             }         });      }  &lt;\/script&gt;  &lt;div role=&quot;tabpanel&quot;&gt;     &lt;ul class=&quot;nav  nav-pills nav-justified&quot;&gt;         &lt;li role=&quot;presentation&quot; class=&quot;active&quot;&gt;&lt;a href=&quot;#dateTab&quot; aria-controls=&quot;dateTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u041f\u0440\u0438\u0435\u043c\u044b&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#InfoTab&quot; aria-controls=&quot;InfoTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#AnamnesisTab&quot; aria-controls=&quot;AnamnesisTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u0410\u043d\u0430\u043c\u043d\u0435\u0437&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#DebutsTab&quot; aria-controls=&quot;DebutsTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u0414\u0435\u0431\u044e\u0442&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#DiagnosesTab&quot; aria-controls=&quot;DiagnosesTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u0414\u0438\u0430\u0433\u043d\u043e\u0437\u044b&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#SyndromesTab&quot; aria-controls=&quot;SyndromesTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u044b&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#ResearchesTab&quot; aria-controls=&quot;ResearchesTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#AssigmentsTab&quot; aria-controls=&quot;AssigmentsTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#NeurostatusTab&quot; aria-controls=&quot;NeurostatusTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u041d\u0435\u0432\u0440\u043e\u0441\u0442\u0430\u0442\u0443\u0441&lt;\/a&gt;&lt;\/li&gt;         &lt;li role=&quot;presentation&quot;&gt;&lt;a href=&quot;#ReviewsTab&quot; aria-controls=&quot;ReviewsTab&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;&gt;\u0420\u0435\u0437\u044e\u043c\u0435&lt;\/a&gt;&lt;\/li&gt;     &lt;\/ul&gt;     &lt;div class=&quot;tab-content&quot;&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane active fade in&quot; id=&quot;dateTab&quot;&gt;             @if (Model.visits.Count == 0)             {                 &lt;div class=&quot;bs-callout bs-callout-success&quot;&gt;                     &lt;p&gt;\u041f\u0430\u0446\u0438\u0435\u043d\u0442 \u0435\u0449\u0435 \u043d\u0435 \u0431\u044b\u043b \u043d\u0430 \u043f\u0440\u0438\u0435\u043c\u0435.&lt;\/p&gt;                 &lt;\/div&gt;             }             @if (Model.visits.Count != 0 && Model.visits.First().date.Equals(DateTime.Today))             {                 @Html.Partial(&quot;~\/Views\/Pacients\/documentList.cshtml&quot;, new documentList { num = 1, add = true, visit = Model.visits.First() })             }             @{                 int num = 9;             }             @foreach (var visit in Model.visits)             {                 if (visit.date.Equals(DateTime.Today))                 {                     continue;                 }                 @Html.Partial(&quot;~\/Views\/Pacients\/documentList.cshtml&quot;, new documentList { num = num, add = false, visit = visit })                 num = num + 8;              }         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;InfoTab&quot;&gt;                 @Html.Partial(&quot;~\/Views\/Pacients\/PersonalData.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;AnamnesisTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/anamnesisList.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;DebutsTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/debutList.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;DiagnosesTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/diagnosisList.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;SyndromesTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/syndromList.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;ResearchesTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/researchList.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;AssigmentsTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/assigmentList.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;NeurostatusTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/neurostatusList.cshtml&quot;, Model)         &lt;\/div&gt;         &lt;div role=&quot;tabpanel&quot; class=&quot;tab-pane fade&quot; id=&quot;ReviewsTab&quot;&gt;             @Html.Partial(&quot;~\/Views\/Pacients\/reviewList.cshtml&quot;, Model)         &lt;\/div&gt;              &lt;\/div&gt;      &lt;\/div&gt;  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0434\u043d\u043e \u0438\u0437 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0432\u043a\u043b\u0430\u0434\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 \u0430\u043d\u0430\u043c\u043d\u0435\u0437\u0430\u043c\u0438.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Views\/Pacient\/anamnesisList.cshtml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\"> @model WebApplication2.Models.Pacient @using WebApplication2.Models   &lt;div class=&quot;bs-callout bs-callout-success&quot;&gt;         &lt;h5&gt;\u0421\u0432\u043e\u0434\u043d\u044b\u0439 \u0430\u043d\u0430\u043c\u043d\u0435\u0437&lt;\/h5&gt;         &lt;p&gt;&nbsp;&lt;\/p&gt;     &lt;div class=&quot;tabContent&quot;&gt;         @foreach (var visit in Model.visits)         {             foreach (var anamnes in visit.anamnesis)             {                 @Html.Partial(&quot;~\/Views\/Anamnesis\/pacientDetails.cshtml&quot;, anamnes)             }         }         &lt;\/div&gt;     &lt;\/div&gt;  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u043d\u043e\u0432\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u0430: pacientDetails, pacientCreate, pacientEdit, pacientDelete. \u041d\u0430\u0434\u043e \u0438\u0437 \u043d\u0438\u0445 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0448\u0435. \u0417\u043d\u0430\u0447\u0438\u0442 \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c!<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/507\/fe7\/477\/507fe747751048a3bfd323a29ee95238.PNG\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/53a\/ae8\/d5b\/53aae8d5b278460596fd4a529fa54eed.png\"\/>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0435\u0433\u043e:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Views\/Anamnesis\/pacientDetails.cshtml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">@model WebApplication2.Models.Anamnesis  &lt;div class=&quot;@String.Format(&quot;AnamnesisDiv{0}&quot;, Model.ID) row&quot;&gt;     &lt;div class=&quot;col-md-4&quot;&gt;&lt;strong&gt;         @Html.DisplayFor(model =&gt; model.type.name)         &lt;\/strong&gt;     &lt;\/div&gt;     &lt;div class=&quot;col-md-6&quot;&gt;&lt;p&gt;         @Html.DisplayFor(model =&gt; model.comments)         &lt;\/p&gt;     &lt;\/div&gt;     &lt;div class=&quot;col-md-2&quot;&gt;         &lt;button class=&quot;btn btn-success btn-sm&quot; onclick=&quot;LoadEditForm('Anamnesis', @Model.ID)&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-pencil&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt;         &lt;\/button&gt;         &lt;button class=&quot;btn btn-danger btn-sm&quot; onclick=&quot;Delete('Anamnesis', @Model.ID)&quot;&gt;             &lt;span class=&quot;glyphicon glyphicon-trash&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt;         &lt;\/button&gt;     &lt;\/div&gt;  &lt;\/div&gt; &lt;hr \/&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0438\u043c\u0435\u043d \u0437\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f  <a href=\"http:\/\/habrahabr.ru\/users\/html\/\" class=\"user_link\">Html<\/a>.DisplayFor(model =&gt; model.type.name) \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u042d\u0442\u043e \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 (\u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u0441\u0442\u0430).<\/p>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043c\u043d\u0435\u0437\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Views\/Anamnesis\/pacientEdit.cshtml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">@model WebApplication2.Models.Anamnesis  &lt;form class=&quot;@String.Format(&quot;AnamnesisEdit{0}&quot;, Model.ID)&quot;&gt;      @Html.AntiForgeryToken()     @Html.HiddenFor(model =&gt; model.ID)     @Html.HiddenFor(model =&gt; model.type.ID)     &lt;div class=&quot;form-horizontal&quot;&gt;         &lt;div class=&quot;col-md-4&quot;&gt;             &lt;strong&gt;                 @Html.DisplayFor(model =&gt; model.type.name)             &lt;\/strong&gt;         &lt;\/div&gt;         &lt;div class=&quot;col-md-6&quot;&gt;                 @Html.EditorFor(model =&gt; model.comments, new { htmlAttributes = new { @class = &quot;form-control&quot;, @placeholder = Html.DisplayNameFor(model =&gt; model.comments) } })                 @Html.ValidationMessageFor(model =&gt; model.comments, &quot;&quot;, new { @class = &quot;text-danger&quot; })         &lt;\/div&gt;         &lt;div class=&quot;col-md-2&quot;&gt;             &lt;a onclick=&quot;CancelEdit('Anamnesis', @Model.ID);&quot; class=&quot;btn btn-warning btn-sm&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-backward&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt;&lt;\/a&gt;             &lt;a onclick=&quot;PostEditForm('Anamnesis', @Model.ID);&quot; class=&quot;btn btn-primary btn-sm&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-save&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/span&gt;&lt;\/a&gt;         &lt;\/div&gt;     &lt;\/div&gt;  &lt;\/form&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f:   <\/p>\n<ul>\n<li>  <a href=\"http:\/\/habrahabr.ru\/users\/html\/\" class=\"user_link\">Html<\/a>.AntiForgeryToken() \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/li>\n<li> <a href=\"http:\/\/habrahabr.ru\/users\/html\/\" class=\"user_link\">Html<\/a>.HiddenFor(model =&gt; model.ID) \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 &lt;input type=\u00abhidden\u00bb\u2026 &gt; \u0434\u043b\u044f \u043f\u043e\u043b\u044f<\/li>\n<li> <a href=\"http:\/\/habrahabr.ru\/users\/html\/\" class=\"user_link\">Html<\/a>.ValidationMessageFor(model =&gt; model.comments, &quot;&quot;, new {  <a href=\"http:\/\/habrahabr.ru\/users\/class\/\" class=\"user_link\">class<\/a> = \u00abtext-danger\u00bb }) \u2014 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440\u0430<\/li>\n<li> <a href=\"http:\/\/habrahabr.ru\/users\/html\/\" class=\"user_link\">Html<\/a>.EditorFor(model =&gt; model.comments) \u2014 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043f\u043e\u043b\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0438\u043f\u0443 \u043f\u043e\u043b\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, input \u0438\u043b\u0438 textarea)<\/li>\n<li>CancelEdit \u0438 PostEditForm \u2014 \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043c\u0438 \u0440\u0430\u043d\u0435\u0435 JS \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b<\/li>\n<\/ul>\n<p>  \u0410 \u0432\u043e\u0442 \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0441\u043b\u043e\u0436\u043d\u0435\u0435: \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f, \u0430 \u044d\u0442\u043e \u0434\u0440\u0443\u0433\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u041d\u0430\u0434\u043e \u0442\u0430\u0449\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432. \u041f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438\u0445 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e, \u0430 \u0432\u043e\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u2014 \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 \u043c\u043e\u0434\u0435\u043b\u044c. \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c\u2026<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b <b>Models\\viewModels.cs<\/b> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0443\u0434\u0430 \u043a\u043e\u0434 \u043d\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0412 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043c\u043d\u0435\u0437\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public class newAnamnesis {     public Anamnesis anamnesis { get; set; }     public int visitID { get; set; }     public int? num { get; set; }     public List&lt;AnamnesisEventType&gt; eventTypes { get; set; }  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043c \u043d\u0430\u0448\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e pacientCreate \u0432 Controllers\\AnamnesisController.cs:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">pacientCreate &#8212; \u043c\u0435\u0442\u043e\u0434 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043d\u0430\u043c\u043d\u0435\u0437\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/\/ GET: Anamnesis\/Create public ActionResult pacientCreate(int visitID, int num) {     newAnamnesis na = new newAnamnesis();     na.visitID = visitID;     na.num = num;     na.anamnesis = new Anamnesis();     na.eventTypes = db.anamnesisTypes.ToList();     return PartialView(na); } [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create(newAnamnesis data) {     VisitDate visit = db.visits.Include(v =&gt; v.anamnesis).Where(v =&gt; v.ID == data.visitID).First();      if (visit == null)         return RedirectToAction(&quot;Index&quot;, &quot;Pacients&quot;);      Pacient pacient = db.pacients.Where(p =&gt; p.visits.Any(v =&gt; v.ID == data.visitID)).First();     if (pacient == null)         return RedirectToAction(&quot;Index&quot;, &quot;Pacients&quot;);      if (ModelState.IsValid)     {         AnamnesisEventType type = db.anamnesisTypes.Where(a =&gt; a.ID == data.anamnesis.type.ID).First();         data.anamnesis.type = type;         visit.anamnesis.Add(data.anamnesis);                          db.SaveChanges();         return PartialView(&quot;\/views\/Anamnesis\/pacientDetails.cshtml&quot;, data.anamnesis);     }     return PartialView(&quot;\/views\/Anamnesis\/pacientCreate.cshtml&quot;, data);  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0424\u0443\u0445, \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u041a \u0441\u043b\u043e\u0432\u0443 \u043f\u043e \u0438\u0434\u0435\u0435 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0441\u043a\u0430\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u043d\u043e \u0442\u0430\u043a \u0432 Razor \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f. \u041f\u043e\u043f\u0440\u0430\u0432\u044c\u0442\u0435, \u0435\u0441\u043b\u0438 \u044f \u043d\u0435 \u043f\u0440\u0430\u0432. <\/p>\n<p>  \u0424\u043e\u0440\u043c\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u0435\u043c\u044b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f documentList.cshtml \u0434\u043b\u044f \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u041f\u0440\u0438\u0435\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">@model WebApplication2.Models.documentList @using WebApplication2.Models @{ var cl = &quot;bs-callout-primary&quot;;     var ac = &quot;&quot;; } @if (Model.add == false) {     cl = &quot;bs-callout-success&quot;;     ac = &quot;&quot;; }  &lt;div class=&quot;bs-callout @cl&quot;&gt;             @if (Model.add == false)             {                 &lt;h5&gt;\u041f\u0440\u0438\u0435\u043c @Model.visit.date&lt;\/h5&gt;             }             else             {                 &lt;h5&gt;\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u043f\u0440\u0438\u0435\u043c&lt;\/h5&gt;             }             @if (Model.visit.anamnesis.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u0410\u043d\u0430\u043c\u043d\u0435\u0437&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var anamnes in Model.visit.anamnesis)                                     {                                         @Html.Partial(&quot;~\/Views\/Anamnesis\/pacientDetails.cshtml&quot;, anamnes);                                     }                                 &lt;\/div&gt;                                                                  @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Anamnesis&quot;, new { num = Model.num, visitID = Model.visit.ID})                                 }                                                              &lt;\/div&gt;                         &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }             @if (Model.visit.debutes.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u0414\u0435\u0431\u044e\u0442&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var debut in Model.visit.debutes)                                     {                                         @Html.Partial(&quot;~\/Views\/Debuts\/pacientDetails.cshtml&quot;, debut);                                     }                                 &lt;\/div&gt;                                 @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Debuts&quot;, new { num = Model.num, visitID = Model.visit.ID })                                 }                                                              &lt;\/div&gt;                         &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }             @if (Model.visit.diagnoses.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u0414\u0438\u0430\u0433\u043d\u043e\u0437&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var diagnosis in Model.visit.diagnoses)                                     {                                         @Html.Partial(&quot;~\/Views\/Diagnoses\/pacientDetails.cshtml&quot;, diagnosis);                                     }                                 &lt;\/div&gt;                                 @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Diagnoses&quot;, new { num = Model.num, visitID = Model.visit.ID })                                 }                             &lt;\/div&gt;                                                      &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }             @if (Model.visit.syndromes.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u044b&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var syndrome in Model.visit.syndromes)                                     {                                         @Html.Partial(&quot;~\/Views\/Syndromes\/pacientDetails.cshtml&quot;, syndrome);                                     }                                 &lt;\/div&gt;                                 @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Syndromes&quot;, new { num = Model.num, visitID = Model.visit.ID })                                 }                             &lt;\/div&gt;                         &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }             @if (Model.visit.researches.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var research in Model.visit.researches)                                     {                                         @Html.Partial(&quot;~\/Views\/Researches\/pacientDetails.cshtml&quot;, research);                                     }                                 &lt;\/div&gt;                                 @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Researches&quot;, new { num = Model.num, visitID = Model.visit.ID })                                 }                             &lt;\/div&gt;                         &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }             @if (Model.visit.assigments.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var assigment in Model.visit.assigments)                                     {                                         @Html.Partial(&quot;~\/Views\/Assigments\/pacientDetails.cshtml&quot;, assigment);                                     }                                 &lt;\/div&gt;                                 @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Assigments&quot;, new { num = Model.num, visitID = Model.visit.ID })                                 }                             &lt;\/div&gt;                         &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }             @if (Model.visit.neurostatuses.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u041d\u0435\u0432\u0440\u043e\u0441\u0442\u0430\u0442\u0443\u0441&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var neurostatus in Model.visit.neurostatuses)                                     {                                         @Html.Partial(&quot;~\/Views\/Neurostatus\/pacientDetails.cshtml&quot;, neurostatus);                                     }                                 &lt;\/div&gt;                                  @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Neurostatus&quot;, new { num = Model.num, visitID = Model.visit.ID })                                 }                             &lt;\/div&gt;                         &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }              @if (Model.visit.reviews.Count &gt; 0 || Model.add == true)             {                 &lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot; role=&quot;tablist&quot; aria-multiselectable=&quot;true&quot;&gt;                     &lt;div class=&quot;panel panel-default&quot;&gt;                         &lt;div class=&quot;panel-heading&quot; role=&quot;tab&quot; id=&quot;@String.Format(&quot;#documentHeading{0}&quot;, Model.num)&quot; onclick=&quot;$('@String.Format(&quot;#document{0}&quot;, Model.num)').collapse('toogle');&quot;&gt;                             &lt;h4 class=&quot;panel-title&quot;&gt;                                 &lt;a data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;@String.Format(&quot;#document{0}&quot;, Model.num)&quot; aria-expanded=&quot;true&quot; aria-controls=&quot;collapseOne&quot;&gt;                                     \u0420\u0435\u0437\u044e\u043c\u0435&lt;span class=&quot;pull-right&quot;&gt;&lt;small&gt;@Model.visit.date&lt;\/small&gt;&lt;\/span&gt;                                 &lt;\/a&gt;                             &lt;\/h4&gt;                         &lt;\/div&gt;                         &lt;div id=&quot;@String.Format(&quot;document{0}&quot;, Model.num)&quot; class=&quot;panel-collapse collapse @ac&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;headingOne&quot;&gt;                             &lt;div class=&quot;panel-body&quot;&gt;                                 &lt;div id=&quot;@String.Format(&quot;documentData{0}&quot;, Model.num)&quot;&gt;                                     @foreach (var review in Model.visit.reviews)                                     {                                         @Html.Partial(&quot;~\/Views\/Reviews\/pacientDetails.cshtml&quot;, review);                                     }                                 &lt;\/div&gt;                                  @if (Model.add == true)                                 {                                     @Html.Action(&quot;pacientCreate&quot;, &quot;Reviews&quot;, new { num = Model.num, visitID = Model.visit.ID })                                 }                             &lt;\/div&gt;                         &lt;\/div&gt;                     &lt;\/div&gt;                 &lt;\/div&gt;                 Model.num = Model.num + 1;             }     &lt;div class=&quot;row&quot;&gt;         @Html.ActionLink(&quot;\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u0435\u043c\u0435&quot;, &quot;Delete&quot;, &quot;VisitDates&quot;, new { id = Model.visit.ID }, new { @class = &quot;btn btn-danger btn-sm pull-right&quot;, style = &quot;margin-top: 10px;margin-right: 15px;&quot; })     &lt;\/div&gt;         &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u043d\u0435\u0433\u043e, \u043a\u0441\u0442\u0430\u0442\u0438, \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bd7\/de3\/7b8\/bd7de37b80304014ae1619050b585ac2.PNG\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b3d\/410\/7ed\/b3d4107ed090455d824535ea54f2e695.PNG\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6ca\/c2a\/3b4\/6cac2a3b40bf41768b42f8435c9e7dc5.PNG\"\/><\/p>\n<h4>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/h4>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e FTP \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c Web.Release.Config \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432\u043f\u0438\u0441\u0430\u0432 \u0432 \u043d\u0435\u0433\u043e connectionString \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0437\u0430\u0431\u043e\u0442\u043b\u0438\u0432\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b Microsoft \u043f\u0440\u044f\u043c\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<p>  \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0431\u0430\u0437\u044b \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0447\u0435\u0440\u0435\u0437 SQL Server Management Studio.<\/p>\n<p>  \u0421 Azure \u0432\u0441\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435 \u2014 \u0441\u0442\u0443\u0434\u0438\u044f \u0441\u0430\u043c\u0430 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u0441\u0435 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0440\u0430\u0439\u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e \u043e\u0431\u0449\u0438\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c. \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 GitHub: <a href=\"https:\/\/github.com\/roctbb\/ICNE_EHR\/\">https:\/\/github.com\/roctbb\/ICNE_EHR\/<\/a>.<\/p>\n<p>  \u0414\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u044e\u0441\u044c, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0449\u0438 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043b\u044e\u0431\u044b\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0441\u0430\u0439\u0442 asp.net \u0438 \u0431\u0435\u0441\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043d\u0430 stackoverflow.com.             <\/p>\n<div class=\"clear\"><\/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\/260867\/\"> http:\/\/habrahabr.ru\/post\/260867\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u0443\u0440\u0441\u043e\u0432\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 (\u041c\u0418\u0421) \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0447\u0430\u0441\u0442\u043d\u043e\u0439 \u043a\u043b\u0438\u043d\u0438\u043a\u0438 \u043f\u043e \u043b\u0435\u0447\u0435\u043d\u0438\u044e \u044d\u043f\u0438\u043b\u0435\u043f\u0441\u0438\u0438. <\/p>\n<p>  \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 \u043a\u043b\u0438\u043d\u0438\u043a\u0435 \u0443\u0436\u0435 \u0431\u044b\u043b\u0430, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043e\u043d\u0430 \u0431\u044b\u043b\u0430 \u0435\u0449\u0435 \u0432 \u0434\u0430\u043b\u0435\u043a\u043e\u043c 1998 \u0433\u043e\u0434\u0443 \u0432 Microsoft Access \u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u043f\u0440\u0438\u0447\u0435\u043c \u0434\u0430\u0436\u0435 \u0441 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c), \u043d\u043e \u0432\u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043e\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u2014 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0437\u0430\u0432\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0435\u0435 \u0441\u0442\u0430\u043b\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0417\u043d\u0430\u0447\u0438\u0442, \u0434\u0430\u0432\u043d\u043e \u043d\u0430\u0437\u0440\u0435\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u043e\u0432\u043e\u0435!<\/p>\n<p>  \u0421\u043a\u0430\u0437\u0430\u043d\u043e \u2014 \u0441\u0434\u0435\u043b\u0430\u043d\u043e. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u043e (\u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0441\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0432\u0443\u044e \u043f\u043e\u0440\u0430) \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0435\u0431\u044f. \u042f \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 ASP.NET MVC, \u0431\u044b\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 C# \u0438 \u043e\u0431\u0449\u0438\u043c\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c\u0438 MVC, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043a\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e Visual Studio 2015 RC \u0438 \u043f\u0440\u0438\u043d\u044f\u043b\u0441\u044f \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0432\u0448\u0438\u043c\u0438\u0441\u044f \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u043c\u0438 \u043a\u0430\u043c\u043d\u044f\u043c\u0438. \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0435\u043b\u0430\u043b \u0431\u043b\u043e\u0433 \u043f\u043e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0443 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e MVC \u0444\u0440\u0435\u0439\u043c\u0444\u043e\u0440\u043a\u0430 \u0438 \u0445\u043e\u0447\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435.  <\/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-259844","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259844","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=259844"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259844\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}