#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(376, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 15 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"

            ViewData["Title"] = "Details";
            string apiKey = "7c62e35c7db3b5dc34f383e4b9603d99";

#line default
#line hidden
            BeginContext(478, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 20 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"

            string[]     top10       = Model.Top10String.Split(',');
            var          moviesList  = MovieList.movies;
            List <Movie> top10Movies = new List <Movie>();
            foreach (var id_movie in top10)
            {
                if (id_movie == "0" || id_movie == "")
                {
                    break;
                }
                foreach (var mov in moviesList)
                {
                    if (mov.id_movie == long.Parse(id_movie))
                    {
                        top10Movies.Add(mov); break;
                    }
                }
            }
            string[] tags = Model.TagsString.Split(',');



#line default
#line hidden
            BeginContext(944, 123, true);
            WriteLiteral("\r\n\r\n\r\n<h2>Details</h2>\r\n\r\n<div>\r\n    <h4>Movie</h4>\r\n    <hr />\r\n    <dl class=\"dl-horizontal\">\r\n        <dt>\r\n            ");
            EndContext();
            BeginContext(1068, 38, false);
#line 46 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayNameFor(model => model.Id));

#line default
#line hidden
            EndContext();
            BeginContext(1106, 43, true);
            WriteLiteral("\r\n        </dt>\r\n        <dd>\r\n            ");
            EndContext();
            BeginContext(1150, 34, false);
#line 49 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayFor(model => model.Id));

#line default
#line hidden
            EndContext();
            BeginContext(1184, 43, true);
            WriteLiteral("\r\n        </dd>\r\n        <dt>\r\n            ");
            EndContext();
            BeginContext(1228, 40, false);
#line 52 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayNameFor(model => model.Name));

#line default
#line hidden
            EndContext();
            BeginContext(1268, 43, true);
            WriteLiteral("\r\n        </dt>\r\n        <dd>\r\n            ");
            EndContext();
            BeginContext(1312, 36, false);
#line 55 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayFor(model => model.Name));

#line default
#line hidden
            EndContext();
            BeginContext(1348, 43, true);
            WriteLiteral("\r\n        </dd>\r\n        <dt>\r\n            ");
            EndContext();
            BeginContext(1392, 42, false);
#line 58 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayNameFor(model => model.Rating));

#line default
#line hidden
            EndContext();
            BeginContext(1434, 43, true);
            WriteLiteral("\r\n        </dt>\r\n        <dd>\r\n            ");
            EndContext();
            BeginContext(1478, 38, false);
#line 61 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayFor(model => model.Rating));

#line default
#line hidden
            EndContext();
            BeginContext(1516, 43, true);
            WriteLiteral("\r\n        </dd>\r\n        <dt>\r\n            ");
            EndContext();
            BeginContext(1560, 48, false);
#line 64 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayNameFor(model => model.ActorsString));

#line default
#line hidden
            EndContext();
            BeginContext(1608, 43, true);
            WriteLiteral("\r\n        </dt>\r\n        <dd>\r\n            ");
            EndContext();
            BeginContext(1652, 44, false);
#line 67 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayFor(model => model.ActorsString));

#line default
#line hidden
            EndContext();
            BeginContext(1696, 43, true);
            WriteLiteral("\r\n        </dd>\r\n        <dt>\r\n            ");
            EndContext();
            BeginContext(1740, 51, false);
#line 70 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayNameFor(model => model.DirectorsString));

#line default
#line hidden
            EndContext();
            BeginContext(1791, 43, true);
            WriteLiteral("\r\n        </dt>\r\n        <dd>\r\n            ");
            EndContext();
            BeginContext(1835, 47, false);
#line 73 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayFor(model => model.DirectorsString));

#line default
#line hidden
            EndContext();
            BeginContext(1882, 43, true);
            WriteLiteral("\r\n        </dd>\r\n        <dt>\r\n            ");
            EndContext();
            BeginContext(1926, 46, false);
#line 76 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayNameFor(model => model.TagsString));

#line default
#line hidden
            EndContext();
            BeginContext(1972, 31, true);
            WriteLiteral("\r\n        </dt>\r\n        <dd>\r\n");
            EndContext();
#line 79 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            foreach (var tag in tags)
            {
#line default
#line hidden
                BeginContext(2063, 20, true);
                WriteLiteral("                    ");
                EndContext();
                BeginContext(2083, 58, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5a62cecd00424777bddd292077b9bef3", async() => {
                    BeginContext(2133, 3, false);
#line 81 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
                    Write(tag);

#line default
#line hidden
                    EndContext();
                    BeginContext(2136, 1, true);
                    WriteLiteral(",");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-searchtag", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 81 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
                WriteLiteral(tag);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["searchtag"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-searchtag", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["searchtag"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2141, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 82 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            }



#line default
#line hidden
            BeginContext(2179, 80, true);
            WriteLiteral("        </dd>\r\n        <dt>\r\n            Overview\r\n        </dt>\r\n        <dd>\r\n");
            EndContext();
#line 90 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            HttpWebRequest apiRequestOverview  = WebRequest.Create("https://api.themoviedb.org/3/search/movie?api_key=" + apiKey + "&language=en-US&query=" + Model.Name + "&page=" + 1 + "&include_adult=false") as HttpWebRequest;
            string         apiResponseOverview = "";
            using (HttpWebResponse response = apiRequestOverview.GetResponse() as HttpWebResponse)
            {
                StreamReader reader = new StreamReader(response.GetResponseStream());
                apiResponseOverview = reader.ReadToEnd();
            }
            string overview;
            ResponseSearchMovies rootObjectOverview = JsonConvert.DeserializeObject <ResponseSearchMovies>
                                                          (apiResponseOverview);
            try { overview = rootObjectOverview.results[0].overview; } catch { overview = "no overview"; }


#line default
#line hidden
            BeginContext(3152, 15, true);
            WriteLiteral("            <p>");
            EndContext();
            BeginContext(3168, 8, false);
#line 102 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(overview);

#line default
#line hidden
            EndContext();
            BeginContext(3176, 47, true);
            WriteLiteral("</p>\r\n        </dd>\r\n        <dt>\r\n            ");
            EndContext();
            BeginContext(3224, 47, false);
#line 105 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            Write(Html.DisplayNameFor(model => model.Top10String));

#line default
#line hidden
            EndContext();
            BeginContext(3271, 31, true);
            WriteLiteral("\r\n        </dt>\r\n        <dd>\r\n");
            EndContext();
#line 108 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            foreach (var movie in top10Movies)
            {
                string image;
                {
                    HttpWebRequest apiRequest  = WebRequest.Create("https://api.themoviedb.org/3/search/movie?api_key=" + apiKey + "&language=en-US&query=" + movie.Name + "&page=" + 1 + "&include_adult=false") as HttpWebRequest;
                    string         apiResponse = "";
                    using (HttpWebResponse response = apiRequest.GetResponse() as HttpWebResponse)
                    {
                        StreamReader reader = new StreamReader(response.GetResponseStream());
                        apiResponse = reader.ReadToEnd();
                    }

                    ResponseSearchMovies rootObject = JsonConvert.DeserializeObject <ResponseSearchMovies>(apiResponse);
                    try { image = "https://image.tmdb.org/t/p/w92/" + rootObject.results[0].poster_path; } catch { image = "no picture"; }
                }

#line default
#line hidden
                BeginContext(4273, 16, true);
                WriteLiteral("                ");
                EndContext();
                BeginContext(4289, 65, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "268001d2005143a49ebf9116f16d90ba", async() => {
                    BeginContext(4339, 10, false);
#line 123 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
                    Write(movie.Name);

#line default
#line hidden
                    EndContext();
                    BeginContext(4349, 1, true);
                    WriteLiteral(",");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 123 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
                WriteLiteral(movie.Id);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4354, 25, true);
                WriteLiteral("\r\n                <p><img");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 4379, "\"", 4391, 1);
#line 124 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
                WriteAttributeValue("", 4385, image, 4385, 6, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(4392, 7, true);
                WriteLiteral("></p>\r\n");
                EndContext();
#line 125 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Details.cshtml"
            }

#line default
#line hidden
            BeginContext(4414, 45, true);
            WriteLiteral("        </dd>\r\n    </dl>\r\n</div>\r\n<div>\r\n    ");
            EndContext();
            BeginContext(4459, 38, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "49de10c50e7a4530a7cfd5f86359a634", async() => {
                BeginContext(4481, 12, true);
                WriteLiteral("Back to List");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(4497, 10, true);
            WriteLiteral("\r\n</div>\r\n");
            EndContext();
        }
Beispiel #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(147, 15, true);
            WriteLiteral("\r\n<style>\r\n    ");
            EndContext();
            BeginContext(163, 876, true);
            WriteLiteral(@"@font-face {
        font-family: 'FontAwesome';
        src: url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2') format('woff2'), url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.woff') format('woff'), url('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/fonts/fontawesome-webfont.ttf') format('truetype');
        font-weight: normal;
        font-style: normal
    }

    .glyphicon {
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale
    }

    .glyphicon-chevron-right:before {
        content: ""\f054"";
    }

    .glyphicon-chevron-left:before {
        content: ""\f053"";
    }
</style>

");
            EndContext();
#line 34 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"

            ViewData["Title"] = "Index";
            string apiKey = "7c62e35c7db3b5dc34f383e4b9603d99";

#line default
#line hidden
            BeginContext(1137, 20, true);
            WriteLiteral("\r\n<h2>Index</h2>\r\n\r\n");
            EndContext();
            BeginContext(1157, 409, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3b4e8a2ffb7e4033a6c2745e67adc203", async() => {
                BeginContext(1219, 54, true);
                WriteLiteral("\r\n    <p>\r\n        Title: <input type=\"text\" name=\"id\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 1273, "\"", 1308, 1);
#line 43 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                WriteAttributeValue("", 1281, ViewData["currentFilter1"], 1281, 27, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1309, 64, true);
                WriteLiteral(">\r\n        Actor/Director: <input type=\"text\" name=\"searchActor\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 1373, "\"", 1408, 1);
#line 44 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                WriteAttributeValue("", 1381, ViewData["currentFilter2"], 1381, 27, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1409, 52, true);
                WriteLiteral(">>\r\n        Tag: <input type=\"text\" name=\"searchTag\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 1461, "\"", 1496, 1);
#line 45 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                WriteAttributeValue("", 1469, ViewData["currentFilter3"], 1469, 27, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1497, 62, true);
                WriteLiteral(">>\r\n        <input type=\"submit\" value=\"Filter\" />\r\n    </p>\r\n");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1566, 249, true);
            WriteLiteral("\r\n<table class=\"table\">\r\n    <thead>\r\n        <tr>\r\n            <th>\r\n                Id\r\n            </th>\r\n            <th>\r\n                Name\r\n            </th>\r\n            <th>\r\n\r\n            </th>\r\n        </tr>\r\n    </thead>\r\n    <tbody>\r\n");
            EndContext();
#line 64 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
            foreach (var item in Model.Movies)
            {
#line default
#line hidden
                BeginContext(1871, 60, true);
                WriteLiteral("            <tr>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(1932, 37, false);
#line 68 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Id));

#line default
#line hidden
                EndContext();
                BeginContext(1969, 67, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(2036, 92, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f6d8c7e26d4747db8e7039cae9db9179", async() => {
                    BeginContext(2085, 39, false);
#line 71 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                    Write(Html.DisplayFor(modelItem => item.Name));

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 71 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                WriteLiteral(item.Id);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2128, 47, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n");
                EndContext();
#line 74 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"

                HttpWebRequest apiRequest  = WebRequest.Create("https://api.themoviedb.org/3/search/movie?api_key=" + apiKey + "&language=en-US&query=" + item.Name + "&page=" + 1 + "&include_adult=false") as HttpWebRequest;
                string         apiResponse = "";
                using (HttpWebResponse response = apiRequest.GetResponse() as HttpWebResponse)
                {
                    StreamReader reader = new StreamReader(response.GetResponseStream());
                    apiResponse = reader.ReadToEnd();
                }
                string image;
                ResponseSearchMovies rootObject = JsonConvert.DeserializeObject <ResponseSearchMovies>(apiResponse);
                try { image = "https://image.tmdb.org/t/p/w92/" + rootObject.results[0].poster_path; } catch { image = "no picture"; }


#line default
#line hidden
                BeginContext(3132, 27, true);
                WriteLiteral("                    <p><img");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 3159, "\"", 3171, 1);
#line 86 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                WriteAttributeValue("", 3165, image, 3165, 6, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(3172, 49, true);
                WriteLiteral("></p>\r\n                </td>\r\n            </tr>\r\n");
                EndContext();
#line 89 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(3232, 24, true);
            WriteLiteral("    </tbody>\r\n</table>\r\n");
            EndContext();
#line 92 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
            if (Model.PageViewModel.HasPreviousPage)
            {
#line default
#line hidden
                BeginContext(3302, 4, true);
                WriteLiteral("    ");
                EndContext();
                BeginContext(3306, 205, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f88c1106348443bba31e9a4723479cdc", async() => {
                    BeginContext(3428, 79, true);
                    WriteLiteral("\r\n        <i class=\"glyphicon glyphicon-chevron-left\"></i>\r\n        Назад\r\n    ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-page", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 95 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                WriteLiteral(Model.PageViewModel.PageNumber - 1);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["page"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-page", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["page"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3511, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 100 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
            }

#line default
#line hidden
#line 101 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
            if (Model.PageViewModel.HasNextPage)
            {
#line default
#line hidden
                BeginContext(3558, 4, true);
                WriteLiteral("    ");
                EndContext();
                BeginContext(3562, 207, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0c894f8c5c68476288d2a9f4cb0983ec", async() => {
                    BeginContext(3684, 81, true);
                    WriteLiteral("\r\n        Вперед\r\n        <i class=\"glyphicon glyphicon-chevron-right\"></i>\r\n    ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-page", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 104 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
                WriteLiteral(Model.PageViewModel.PageNumber + 1);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["page"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-page", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["page"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3769, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 109 "C:\Users\1\Desktop\pRAC\MvcMovie\Views\Movies\Index.cshtml"
            }

#line default
#line hidden
        }