#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(160, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 6 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"

            ViewData["Title"] = "ReservationHistory";

#line default
#line hidden
            BeginContext(216, 62, true);
            WriteLiteral("\r\n<h1 class=\"text-center\">Reservation History</h1>\r\n<br />\r\n\r\n");
            EndContext();
#line 13 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
            if (Model.Reservations.Any())
            {
#line default
#line hidden
                BeginContext(313, 83, true);
                WriteLiteral("    <ul class=\"list-group bg-dark\">\r\n        <li class=\"list-group-item bg-dark\">\r\n");
                EndContext();
#line 17 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                foreach (var item in Model.Reservations)
                {
#line default
#line hidden
                    BeginContext(466, 361, true);
                    WriteLiteral(@"                <div class=""wrapper-reserv"">
                    <div class=""wrapped-div-2"">
                        <div class=""col-md-12 offset-md-0"">
                            <div class=""row"">
                                <div class=""col-md-4"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(828, 94, false);
#line 25 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Reservation Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(922, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(965, 125, false);
#line 26 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.ReservationId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1090, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(1335, 87, false);
#line 31 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Cell Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1422, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(1465, 118, false);
#line 32 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.CellId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1583, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(1828, 86, false);
#line 37 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Status", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1914, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(1957, 293, false);
#line 38 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.CheckBoxFor(model => item.Status, htmlAttributes: new { @class = "form-control", @type = "checkbox", @checked = @item.Status, @data_toggle = "toggle", data_on = "Active", data_off = "Deactive", @data_onstyle = "success", @data_offstyle = "danger", @data_width = "100", @disabled = true }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2250, 327, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <div class=""row"">
                                <div class=""col-md-6"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(2578, 97, false);
#line 45 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Start Reservation", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2675, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(2718, 128, false);
#line 46 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.StartReservation, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2846, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(3091, 95, false);
#line 51 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "End Reservation", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3186, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(3229, 126, false);
#line 52 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.EndReservation, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3355, 327, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <div class=""row"">
                                <div class=""col-md-6"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(3683, 85, false);
#line 59 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Price", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3768, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(3811, 150, false);
#line 60 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.Amount, new { htmlAttributes = new { @class = "form-control", @step = "any", @value = "0.00", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3961, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(4206, 92, false);
#line 65 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Storage Name", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4298, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(4341, 133, false);
#line 66 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.Cell.Storage.Location, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4474, 210, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"form-group\">\r\n                                <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=", 4684, "", 4758, 1);
#line 71 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    WriteAttributeValue("", 4690, Url.Action("Print", "Reservation", new { id = item.ReservationId }), 4690, 68, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(4758, 101, true);
                    WriteLiteral(" class=\"btn btn-primary btn-block\" style=\"background:#8b00ff;\">\r\n                                    ");
                    EndContext();
                    BeginContext(4859, 61, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e8107fe88ce857e99aa6bc0bf6134651a4111d6016583", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(4920, 203, true);
                    WriteLiteral("\r\n                                    Print\r\n                                </a>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n");
                    EndContext();
#line 79 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                }

#line default
#line hidden
                BeginContext(5138, 116, true);
                WriteLiteral("        </li>\r\n        <li class=\"list-group-item-secondary text-center\" style=\"list-style-type:none\">\r\n            ");
                EndContext();
                BeginContext(5254, 868, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e8107fe88ce857e99aa6bc0bf6134651a4111d6018445", async() => {
                    BeginContext(6096, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __MyUniversityProject_Helpers_PageLinkTagHelper = CreateTagHelper <global::MyUniversityProject.Helpers.PageLinkTagHelper>();
                __tagHelperExecutionContext.Add(__MyUniversityProject_Helpers_PageLinkTagHelper);
#line 82 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel = Model.PageViewModel;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageAction = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                if (__MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-SearchFilter", "MyUniversityProject.Helpers.PageLinkTagHelper", "PageUrlValues"));
                }
#line 83 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"] = Model.ReserveFilterViewModel.SearchFilter;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchFilter", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 84 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"] = Model.ReserveFilterViewModel.SortItem;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SortItem", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 85 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"] = Model.ReserveFilterViewModel.MinPrice;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 86 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"] = Model.ReserveFilterViewModel.MaxPrice;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 87 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"] = Model.ReserveFilterViewModel.SearchValue;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchValue", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 88 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["FirstDate"] = (Model.ReserveFilterViewModel.FirstDate == null ? null:Model.ReserveFilterViewModel.FirstDate.Value.Date.ToString("yyyy-MM-dd"));

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-FirstDate", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["FirstDate"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 89 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SecondDate"] = (Model.ReserveFilterViewModel.SecondDate == null ? null:Model.ReserveFilterViewModel.SecondDate.Value.Date.ToString("yyyy-MM-dd"));

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SecondDate", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SecondDate"], 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(6122, 28, true);
                WriteLiteral("\r\n        </li>\r\n    </ul>\r\n");
                EndContext();
#line 93 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(6162, 55, true);
                WriteLiteral("    <br />\r\n    <h1>Doesn\'t have any Reservation</h1>\r\n");
                EndContext();
#line 98 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
            }

#line default
#line hidden
        }
Пример #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(109, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 5 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
            if (Model.Cells.FirstOrDefault().Any())
            {
#line default
#line hidden
                BeginContext(164, 205, true);
                WriteLiteral("        <div class=\"d-flex justify-content-center\">\r\n            <ul class=\"list-group\">\r\n                <li class=\"list-group-item\">\r\n                    <table class=\"table-sm table-dark text-center\">\r\n");
                EndContext();
#line 11 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                foreach (var items in Model.Cells)
                {
#line default
#line hidden
                    BeginContext(457, 34, true);
                    WriteLiteral("                            <tr>\r\n");
                    EndContext();
#line 14 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                    foreach (var item in items)
                    {
#line default
#line hidden
                        BeginContext(588, 248, true);
                        WriteLiteral("                                    <td class=\"form-group\">\r\n                                        <ul class=\"list-group\">\r\n                                            <li class=\"list-group-item\">\r\n                                                ");
                        EndContext();
                        BeginContext(837, 129, false);
#line 19 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                        Write(Html.LabelFor(modelItem => item.CellId, "Id: " + item.CellId.ToString(), new { @class = "control-label  text-dark text-center" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(966, 127, true);
                        WriteLiteral("\r\n                                            </li>\r\n                                            <li class=\"list-group-item\">\r\n");
                        EndContext();
#line 22 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                        if (item.Status)
                        {
#line default
#line hidden
                            BeginContext(1264, 114, false);
#line 24 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                            Write(Html.ActionLink("Reserve", "ReserveCell", "Storage", new { id = item.CellId }, new { @class = "btn btn-success" }));

#line default
#line hidden
                            EndContext();
#line 24 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                        }
                        else
                        {
#line default
#line hidden
                            BeginContext(1589, 122, false);
#line 28 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                            Write(Html.ActionLink("Reserve", "ReserveCell", "Storage", new { id = item.CellId }, new { @class = "btn btn-danger disabled" }));

#line default
#line hidden
                            EndContext();
#line 28 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                        }

#line default
#line hidden
                        BeginContext(1764, 141, true);
                        WriteLiteral("                                            </li>\r\n                                        </ul>\r\n                                    </td>\r\n");
                        EndContext();
#line 33 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                    }

#line default
#line hidden
                    BeginContext(1940, 35, true);
                    WriteLiteral("                            </tr>\r\n");
                    EndContext();
#line 35 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                }

#line default
#line hidden
                BeginContext(2002, 170, true);
                WriteLiteral("                    </table>\r\n                </li>\r\n                <li class=\"list-group-item-secondary text-center\" style=\"list-style-type:none\">\r\n                    ");
                EndContext();
                BeginContext(2172, 154, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b8a319f08bb49f3c5446ee9584e00e0a94912df19227", async() => {
                }
                                                                            );
                __MyUniversityProject_Helpers_PageLinkTagHelper = CreateTagHelper <global::MyUniversityProject.Helpers.PageLinkTagHelper>();
                __tagHelperExecutionContext.Add(__MyUniversityProject_Helpers_PageLinkTagHelper);
#line 39 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel = Model.PageViewModel;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                if (__MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-id", "MyUniversityProject.Helpers.PageLinkTagHelper", "PageUrlValues"));
                }
#line 39 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["id"] = Model.Cells.FirstOrDefault().FirstOrDefault().StorageId;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-id", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageAction = (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(2326, 62, true);
                WriteLiteral("\r\n                </li>\r\n            </ul>\r\n\r\n        </div>\r\n");
                EndContext();
#line 44 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(2412, 65, true);
                WriteLiteral("        <br/>\r\n        <h1>This Storage doesn\'t have cells</h1>\r\n");
                EndContext();
#line 49 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\ListOfCells.cshtml"
            }

#line default
#line hidden
        }
Пример #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(113, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 5 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
            if (Model.Cells.FirstOrDefault().Any())
            {
#line default
#line hidden
                BeginContext(160, 209, true);
                WriteLiteral("    <div class=\"d-flex justify-content-center table-responsive-xl\">\r\n        <ul class=\"list-group\">\r\n            <li class=\"list-group-item\">\r\n                <table class=\"table-sm table-dark text-center\">\r\n");
                EndContext();
#line 11 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                foreach (var items in Model.Cells)
                {
#line default
#line hidden
                    BeginContext(449, 30, true);
                    WriteLiteral("                        <tr>\r\n");
                    EndContext();
#line 14 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                    foreach (var item in items)
                    {
#line default
#line hidden
                        BeginContext(568, 311, true);
                        WriteLiteral(@"                                <td class=""form-group"">
                                    <ul class=""list-group"">
                                        <li class=""list-group-item"">
                                            <ul class=""list-group"">
                                                <li>
");
                        EndContext();
#line 21 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        if (item.Status)
                        {
#line default
#line hidden
                            BeginContext(1005, 235, true);
                            WriteLiteral("                                                        <button class=\"btn btn-success btn-block\">\r\n                                                            Active\r\n                                                        </button>\r\n");
                            EndContext();
#line 26 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        }
                        else
                        {
#line default
#line hidden
                            BeginContext(1408, 239, true);
                            WriteLiteral("                                                        <button class=\"btn btn-danger btn-block\">\r\n                                                            Deactivated\r\n                                                        </button>\r\n");
                            EndContext();
#line 32 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        }

#line default
#line hidden
                        BeginContext(1702, 206, true);
                        WriteLiteral("                                                </li>\r\n                                                <li class=\"list-group-item\" style=\"width:200px;\">\r\n                                                    ");
                        EndContext();
                        BeginContext(1909, 129, false);
#line 35 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        Write(Html.LabelFor(modelItem => item.CellId, "Id: " + item.CellId.ToString(), new { @class = "control-label  text-dark text-center" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(2038, 208, true);
                        WriteLiteral("\r\n                                                </li>\r\n                                                <li class=\"list-group-item\" style=\"width:200px;\">\r\n                                                    ");
                        EndContext();
                        BeginContext(2247, 130, false);
#line 38 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        Write(Html.LabelFor(modelItem => item.Width, "Width: " + item.Width.ToString(), new { @class = "control-label  text-dark text-center" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(2377, 208, true);
                        WriteLiteral("\r\n                                                </li>\r\n                                                <li class=\"list-group-item\" style=\"width:200px;\">\r\n                                                    ");
                        EndContext();
                        BeginContext(2586, 133, false);
#line 41 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        Write(Html.LabelFor(modelItem => item.Height, "Height: " + item.Height.ToString(), new { @class = "control-label  text-dark text-center" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(2719, 208, true);
                        WriteLiteral("\r\n                                                </li>\r\n                                                <li class=\"list-group-item\" style=\"width:200px;\">\r\n                                                    ");
                        EndContext();
                        BeginContext(2928, 133, false);
#line 44 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        Write(Html.LabelFor(modelItem => item.Length, "Length: " + item.Length.ToString(), new { @class = "control-label  text-dark text-center" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(3061, 208, true);
                        WriteLiteral("\r\n                                                </li>\r\n                                                <li class=\"list-group-item\" style=\"width:200px;\">\r\n                                                    ");
                        EndContext();
                        BeginContext(3270, 139, false);
#line 47 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        Write(Html.LabelFor(modelItem => item.Capacity, "Capacity: " + item.Capacity.ToString(), new { @class = "control-label  text-dark text-center" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(3409, 412, true);
                        WriteLiteral(@"
                                                </li>
                                            </ul>
                                        </li>
                                        <li class=""list-group-item"">
                                            <div class=""row"">
                                                <div class=""col-md-6"">
                                                    ");
                        EndContext();
                        BeginContext(3822, 115, false);
#line 54 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        Write(Html.ActionLink("Information", "GetCellInfo", "Storage", new { id = item.CellId }, new { @class = "btn btn-info" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(3937, 182, true);
                        WriteLiteral("\r\n                                                </div>\r\n                                                <div class=\"col-md-6\">\r\n                                                    ");
                        EndContext();
                        BeginContext(4120, 153, false);
#line 57 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                        Write(Html.ActionLink("Delete", "_DeleteOneCell", "Storage", new { id = item.CellId, page = @Model.PageViewModel.PageNumber }, new { @class = "btn btn-danger" }));

#line default
#line hidden
                        EndContext();
                        BeginContext(4273, 239, true);
                        WriteLiteral("\r\n                                                </div>\r\n                                            </div>\r\n                                        </li>\r\n                                    </ul>\r\n                                </td>\r\n");
                        EndContext();
#line 63 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                    }

#line default
#line hidden
                    BeginContext(4543, 31, true);
                    WriteLiteral("                        </tr>\r\n");
                    EndContext();
#line 65 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                }

#line default
#line hidden
                BeginContext(4597, 154, true);
                WriteLiteral("                </table>\r\n            </li>\r\n            <li class=\"list-group-item-secondary text-center\" style=\"list-style-type:none\">\r\n                ");
                EndContext();
                BeginContext(4751, 1045, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d6ec17c413baa40cf6d0759975f0dd6abd11490113644", async() => {
                }
                                                                            );
                __MyUniversityProject_Helpers_PageLinkTagHelper = CreateTagHelper <global::MyUniversityProject.Helpers.PageLinkTagHelper>();
                __tagHelperExecutionContext.Add(__MyUniversityProject_Helpers_PageLinkTagHelper);
#line 69 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel = Model.PageViewModel;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                if (__MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-MinWidth", "MyUniversityProject.Helpers.PageLinkTagHelper", "PageUrlValues"));
                }
#line 70 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinWidth"] = Model.CellFilterViewModel.MinWidth;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinWidth", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinWidth"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 71 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxWidth"] = Model.CellFilterViewModel.MaxWidth;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxWidth", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxWidth"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 72 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinHeight"] = Model.CellFilterViewModel.MinHeight;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinHeight", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinHeight"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 73 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxHeight"] = Model.CellFilterViewModel.MaxHeight;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxHeight", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxHeight"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 74 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinLength"] = Model.CellFilterViewModel.MinLength;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinLength", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinLength"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 75 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxLength"] = Model.CellFilterViewModel.MaxLength;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxLength", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxLength"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 76 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinCapacity"] = Model.CellFilterViewModel.MinCapacity;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinCapacity", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinCapacity"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 77 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxCapacity"] = Model.CellFilterViewModel.MaxCapacity;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxCapacity", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxCapacity"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 78 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"] = Model.CellFilterViewModel.SearchFilter;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchFilter", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 79 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"] = Model.CellFilterViewModel.SortItem;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SortItem", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 80 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"] = Model.CellFilterViewModel.SearchValue;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchValue", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageAction = (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(5796, 50, true);
                WriteLiteral("\r\n            </li>\r\n        </ul>\r\n\r\n    </div>\r\n");
                EndContext();
#line 86 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(5858, 54, true);
                WriteLiteral("    <br />\r\n    <h1>Sorry, we haven\'t any cells</h1>\r\n");
                EndContext();
#line 91 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Storage\_GetAllCells.cshtml"
            }

#line default
#line hidden
        }
Пример #4
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(160, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 6 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"

            ViewData["Title"] = "ReservationHistory";

#line default
#line hidden
            BeginContext(216, 62, true);
            WriteLiteral("\r\n<h1 class=\"text-center\">Reservation History</h1>\r\n<br />\r\n\r\n");
            EndContext();
#line 13 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
            if (Model.Reservations.Any())
            {
#line default
#line hidden
                BeginContext(313, 83, true);
                WriteLiteral("    <ul class=\"list-group bg-dark\">\r\n        <li class=\"list-group-item bg-dark\">\r\n");
                EndContext();
#line 17 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                foreach (var item in Model.Reservations)
                {
#line default
#line hidden
                    BeginContext(466, 361, true);
                    WriteLiteral(@"                <div class=""wrapper-reserv"">
                    <div class=""wrapped-div-2"">
                        <div class=""col-md-12 offset-md-0"">
                            <div class=""row"">
                                <div class=""col-md-4"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(828, 94, false);
#line 25 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Reservation Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(922, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(965, 125, false);
#line 26 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.ReservationId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1090, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(1335, 87, false);
#line 31 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Cell Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1422, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(1465, 118, false);
#line 32 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.CellId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1583, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(1828, 86, false);
#line 37 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Status", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1914, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(1957, 293, false);
#line 38 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.CheckBoxFor(model => item.Status, htmlAttributes: new { @class = "form-control", @type = "checkbox", @checked = @item.Status, @data_toggle = "toggle", data_on = "Active", data_off = "Deactive", @data_onstyle = "success", @data_offstyle = "danger", @data_width = "100", @disabled = true }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2250, 327, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <div class=""row"">
                                <div class=""col-md-6"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(2578, 97, false);
#line 45 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Start Reservation", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2675, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(2718, 128, false);
#line 46 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.StartReservation, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2846, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(3091, 95, false);
#line 51 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "End Reservation", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3186, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(3229, 126, false);
#line 52 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.EndReservation, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3355, 327, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <div class=""row"">
                                <div class=""col-md-6"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(3683, 85, false);
#line 59 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Price", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3768, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(3811, 116, false);
#line 60 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.Price, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3927, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(4172, 92, false);
#line 65 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.Label("", "Storage Name", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4264, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(4307, 133, false);
#line 66 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                    Write(Html.EditorFor(model => item.Cell.Storage.Location, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4440, 206, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n");
                    EndContext();
#line 73 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                }

#line default
#line hidden
                BeginContext(4661, 116, true);
                WriteLiteral("        </li>\r\n        <li class=\"list-group-item-secondary text-center\" style=\"list-style-type:none\">\r\n            ");
                EndContext();
                BeginContext(4777, 652, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fd6a2691d8eec161dc76dafb6ad713dec8e02f7d15640", async() => {
                    BeginContext(5403, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __MyUniversityProject_Helpers_PageLinkTagHelper = CreateTagHelper <global::MyUniversityProject.Helpers.PageLinkTagHelper>();
                __tagHelperExecutionContext.Add(__MyUniversityProject_Helpers_PageLinkTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 76 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel = Model.PageViewModel;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageAction = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                if (__MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-SearchFilter", "MyUniversityProject.Helpers.PageLinkTagHelper", "PageUrlValues"));
                }
#line 77 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"] = Model.ReserveFilterViewModel.SearchFilter;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchFilter", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 78 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"] = Model.ReserveFilterViewModel.SortItem;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SortItem", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 79 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"] = Model.ReserveFilterViewModel.MinPrice;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 80 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"] = Model.ReserveFilterViewModel.MaxPrice;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 81 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"] = Model.ReserveFilterViewModel.SearchValue;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchValue", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 82 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["FirstDate"] = Model.ReserveFilterViewModel.FirstDate;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-FirstDate", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["FirstDate"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 83 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SecondDate"] = Model.ReserveFilterViewModel.SecondDate;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SecondDate", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SecondDate"], 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(5429, 28, true);
                WriteLiteral("\r\n        </li>\r\n    </ul>\r\n");
                EndContext();
#line 87 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_ReservationHistory.cshtml"
            }

#line default
#line hidden
        }
Пример #5
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(161, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 6 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"

            ViewData["Title"] = "UserList";

#line default
#line hidden
            BeginContext(207, 51, true);
            WriteLiteral("\r\n<h1 class=\"text-center\">UserList</h1>\r\n<br />\r\n\r\n");
            EndContext();
#line 13 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
            if (Model.UserInfo.Any())
            {
#line default
#line hidden
                BeginContext(289, 83, true);
                WriteLiteral("    <ul class=\"list-group bg-dark\">\r\n        <li class=\"list-group-item bg-dark\">\r\n");
                EndContext();
#line 17 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                foreach (var item in Model.UserInfo)
                {
#line default
#line hidden
                    BeginContext(438, 361, true);
                    WriteLiteral(@"                <div class=""wrapper-reserv"">
                    <div class=""wrapped-div-2"">
                        <div class=""col-md-12 offset-md-0"">
                            <div class=""row"">
                                <div class=""col-md-4"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(800, 89, false);
#line 25 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.Label("", "FirstName", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(889, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(932, 121, false);
#line 26 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.EditorFor(model => item.FirstName, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1053, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(1298, 88, false);
#line 31 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.Label("", "LastName", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1386, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(1429, 120, false);
#line 32 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.EditorFor(model => item.LastName, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1549, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(1794, 87, false);
#line 37 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.Label("", "User Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1881, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(1924, 122, false);
#line 38 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.EditorFor(model => item.UserInfoId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2046, 327, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <div class=""row"">
                                <div class=""col-md-6"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(2374, 87, false);
#line 45 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.Label("", "Address", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2461, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(2504, 119, false);
#line 46 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.EditorFor(model => item.Address, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2623, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(2868, 90, false);
#line 51 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.Label("", "PassportId", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2958, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(3001, 122, false);
#line 52 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.EditorFor(model => item.PassportId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3123, 297, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <br />
                            <div class=""row"">
                                <div class=""col-md-6"">
                                    ");
                    EndContext();
                    BeginContext(3421, 126, false);
#line 59 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.ActionLink("Information", "GetUser", "MyOffice", new { Id = item.UserInfoId }, new { @class = "btn btn-info btn-block" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3547, 134, true);
                    WriteLiteral("\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    ");
                    EndContext();
                    BeginContext(3682, 170, false);
#line 62 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                    Write(Html.ActionLink("Delete", "DeleteUser", "MyOffice", new { userId = item.UserInfoId, page = @Model.PageViewModel.PageNumber }, new { @class = "btn btn-danger btn-block" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3852, 164, true);
                    WriteLiteral("\r\n                                </div>\r\n                            </div>\r\n\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n");
                    EndContext();
#line 69 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                }

#line default
#line hidden
                BeginContext(4031, 116, true);
                WriteLiteral("        </li>\r\n        <li class=\"list-group-item-secondary text-center\" style=\"list-style-type:none\">\r\n            ");
                EndContext();
                BeginContext(4147, 499, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "92ce8cc99e7dead9c282c5a51847bf74dc999ff913846", async() => {
                    BeginContext(4620, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __MyUniversityProject_Helpers_PageLinkTagHelper = CreateTagHelper <global::MyUniversityProject.Helpers.PageLinkTagHelper>();
                __tagHelperExecutionContext.Add(__MyUniversityProject_Helpers_PageLinkTagHelper);
#line 72 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel = Model.PageViewModel;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageAction = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                if (__MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-SearchFilter", "MyUniversityProject.Helpers.PageLinkTagHelper", "PageUrlValues"));
                }
#line 73 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"] = Model.UserFilterViewModel.SearchFilter;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchFilter", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 74 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"] = Model.UserFilterViewModel.SortItem;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SortItem", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 75 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"] = Model.UserFilterViewModel.MinId;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 76 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"] = Model.UserFilterViewModel.MaxId;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 77 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"] = Model.UserFilterViewModel.SearchValue;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchValue", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"], 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(4646, 28, true);
                WriteLiteral("\r\n        </li>\r\n    </ul>\r\n");
                EndContext();
#line 81 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(4686, 49, true);
                WriteLiteral("    <br />\r\n    <h1>Doesn\'t have any Users</h1>\r\n");
                EndContext();
#line 86 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\MyOffice\_UserList.cshtml"
            }

#line default
#line hidden
        }
Пример #6
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(165, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 6 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"

            ViewData["Title"] = "ReservationHistory";

#line default
#line hidden
            BeginContext(221, 62, true);
            WriteLiteral("\r\n<h1 class=\"text-center\">Reservation History</h1>\r\n<br />\r\n\r\n");
            EndContext();
#line 13 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
            if (Model.Reservations.Any())
            {
#line default
#line hidden
                BeginContext(318, 83, true);
                WriteLiteral("    <ul class=\"list-group bg-dark\">\r\n        <li class=\"list-group-item bg-dark\">\r\n");
                EndContext();
#line 17 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                foreach (var item in Model.Reservations)
                {
#line default
#line hidden
                    BeginContext(471, 210, true);
                    WriteLiteral("                <div class=\"wrapper-reserv\">\r\n                    <div class=\"wrapped-div-2\">\r\n                        <div class=\"col-md-12 offset-md-0\">\r\n                            <div class=\"form-group\">\r\n");
                    EndContext();
#line 23 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    if (item.Status)
                    {
#line default
#line hidden
                        BeginContext(767, 100, true);
                        WriteLiteral("                                    <div class=\"btn btn-success btn-block text-white\">Active</div>\r\n");
                        EndContext();
#line 26 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(975, 104, true);
                        WriteLiteral("                                    <div class=\"btn btn-danger btn-block text-white\">Deactivated</div>\r\n");
                        EndContext();
#line 30 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    }

#line default
#line hidden
                    BeginContext(1114, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(1687, 243, true);
                    WriteLiteral("\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(1931, 94, false);
#line 40 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.Label("", "Reservation Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2025, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(2068, 125, false);
#line 41 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.EditorFor(model => item.ReservationId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2193, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(2438, 87, false);
#line 46 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.Label("", "Cell Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2525, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(2568, 118, false);
#line 47 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.EditorFor(model => item.CellId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2686, 327, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <div class=""row"">
                                <div class=""col-md-6"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(3014, 97, false);
#line 54 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.Label("", "Start Reservation", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3111, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(3154, 128, false);
#line 55 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.EditorFor(model => item.StartReservation, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3282, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-6\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(3527, 95, false);
#line 60 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.Label("", "End Reservation", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3622, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(3665, 126, false);
#line 61 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.EditorFor(model => item.EndReservation, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(3791, 327, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <div class=""row"">
                                <div class=""col-md-4"">
                                    <div class=""form-group"">
                                        ");
                    EndContext();
                    BeginContext(4119, 85, false);
#line 68 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.Label("", "Price", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4204, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(4247, 150, false);
#line 69 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.EditorFor(model => item.Amount, new { htmlAttributes = new { @class = "form-control", @step = "any", @value = "0.00", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4397, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(4642, 92, false);
#line 74 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.Label("", "Storage Name", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4734, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(4777, 133, false);
#line 75 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.EditorFor(model => item.Cell.Storage.Location, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(4910, 244, true);
                    WriteLiteral("\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        ");
                    EndContext();
                    BeginContext(5155, 87, false);
#line 80 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.Label("", "User Id", htmlAttributes: new { @class = "control-label  text-white" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(5242, 42, true);
                    WriteLiteral("\r\n                                        ");
                    EndContext();
                    BeginContext(5285, 122, false);
#line 81 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.EditorFor(model => item.UserInfoId, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } }));

#line default
#line hidden
                    EndContext();
                    BeginContext(5407, 297, true);
                    WriteLiteral(@"
                                    </div>
                                </div>
                            </div>
                            <br />
                            <div class=""row"">
                                <div class=""col-md-4"">
                                    ");
                    EndContext();
                    BeginContext(5705, 135, false);
#line 88 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.ActionLink("Information", "GetReserve", "Reservation", new { id = item.ReservationId }, new { @class = "btn btn-info btn-block" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(5840, 134, true);
                    WriteLiteral("\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    ");
                    EndContext();
                    BeginContext(5975, 182, false);
#line 91 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    Write(Html.ActionLink("Delete", "DeleteReserve", "Reservation", new { reserveId = item.ReservationId, page = @Model.PageViewModel.PageNumber }, new { @class = "btn btn-danger btn-block" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(6157, 202, true);
                    WriteLiteral("\r\n                                </div>\r\n                                <div class=\"col-md-4\">\r\n                                    <div class=\"form-group\">\r\n                                        <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=", 6359, "", 6433, 1);
#line 95 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                    WriteAttributeValue("", 6365, Url.Action("Print", "Reservation", new { id = item.ReservationId }), 6365, 68, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(6433, 109, true);
                    WriteLiteral(" class=\"btn btn-primary btn-block\" style=\"background:#8b00ff;\">\r\n                                            ");
                    EndContext();
                    BeginContext(6542, 61, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "9324fed96968aea355d649e182be56b84cbc223119225", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(6603, 305, true);
                    WriteLiteral(@"
                                            Print
                                        </a>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
");
                    EndContext();
#line 106 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                }

#line default
#line hidden
                BeginContext(6923, 116, true);
                WriteLiteral("        </li>\r\n        <li class=\"list-group-item-secondary text-center\" style=\"list-style-type:none\">\r\n            ");
                EndContext();
                BeginContext(7039, 856, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9324fed96968aea355d649e182be56b84cbc223121173", async() => {
                    BeginContext(7869, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __MyUniversityProject_Helpers_PageLinkTagHelper = CreateTagHelper <global::MyUniversityProject.Helpers.PageLinkTagHelper>();
                __tagHelperExecutionContext.Add(__MyUniversityProject_Helpers_PageLinkTagHelper);
#line 109 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel = Model.PageViewModel;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MyUniversityProject_Helpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageAction = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                if (__MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-SearchFilter", "MyUniversityProject.Helpers.PageLinkTagHelper", "PageUrlValues"));
                }
#line 110 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"] = Model.ReserveAdminViewModel.SearchFilter;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchFilter", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchFilter"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 111 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"] = Model.ReserveAdminViewModel.SortItem;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SortItem", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SortItem"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 112 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"] = Model.ReserveAdminViewModel.MinPrice;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MinPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MinPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 113 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"] = Model.ReserveAdminViewModel.MaxPrice;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-MaxPrice", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["MaxPrice"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 114 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"] = Model.ReserveAdminViewModel.SearchValue;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SearchValue", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SearchValue"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 115 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["FirstDate"] = (Model.ReserveAdminViewModel.FirstDate == null ? null:Model.ReserveAdminViewModel.FirstDate.Value.Date.ToString("yyyy-MM-dd"));

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-FirstDate", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["FirstDate"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 116 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
                __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SecondDate"] = (Model.ReserveAdminViewModel.SecondDate == null ? null:Model.ReserveAdminViewModel.SecondDate.Value.Date.ToString("yyyy-MM-dd"));

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("page-url-SecondDate", __MyUniversityProject_Helpers_PageLinkTagHelper.PageUrlValues["SecondDate"], 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(7895, 28, true);
                WriteLiteral("\r\n        </li>\r\n    </ul>\r\n");
                EndContext();
#line 120 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(7935, 55, true);
                WriteLiteral("    <br />\r\n    <h1>Doesn\'t have any Reservation</h1>\r\n");
                EndContext();
#line 125 "C:\Users\user\Documents\GitHub\StorageStation\MyUniversityProject\Views\Reservation\_ReserveList.cshtml"
            }

#line default
#line hidden
        }