#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(64, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 3 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
  
	ViewData["Title"] = "Index";

#line default
#line hidden
            BeginContext(100, 70, true);
            WriteLiteral("\n<div class=\"content-wrapper\">\n\t<!-- Content Header (Page header) -->\n");
            EndContext();
#line 9 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
      var quyen = int.Parse(User.FindFirst("Quyen").Value); 

#line default
#line hidden
            BeginContext(229, 497, true);
            WriteLiteral(@"	<section class=""content-header"">
		<h1>
			Quản Lý Kho
		</h1>
		<ol class=""breadcrumb"">
			<li><a href=""#""> Trang Chủ</a></li>
			<li>Quản Lý Kho</li>
			<li>Báo Cáo</li>
			<li class=""active"">Tồn Kho</li>
		</ol>
	</section>
	<section class=""content"" style=""background-color: white;margin: 10px;border-radius: 5px "">
		<div class=""row"">
			<div class=""col-md-12"">
				<div style=""padding:10px"">
					<label style=""font-size: 18px"">Báo Cáo Tồn Kho </label>
					<span style=""float:right"">
						");
            EndContext();
            BeginContext(726, 149, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5c793127e5420f14224439a09a1bc04d2b81bf925017", async() => {
                BeginContext(785, 86, true);
                WriteLiteral("\n\t\t\t\t\t\t\t<i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i>\n\t\t\t\t\t\t\tXuất Excel\n\t\t\t\t\t\t");
                EndContext();
            }
            );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(875, 281, true);
            WriteLiteral(@"
					</span>
				</div>
			</div>
		</div><!--  row  -->
		<div class=""row"" style=""padding-bottom:20px"">
			<div class=""col-md-6"">
				<center>
					<div style=""margin:0 40px 0 40px;padding:8px 0 8px 0; box-shadow: 0px 0px 10px #b9b6b6"">
						<p>Tổng Số Lượng Tồn :</p>
						<p>");
            EndContext();
            BeginContext(1157, 19, false);
#line 40 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
                      Write(ViewData["tongton"]);

#line default
#line hidden
            EndContext();
            BeginContext(1176, 215, true);
            WriteLiteral("</p>\n\t\t\t\t\t</div>\n\t\t\t\t</center>\n\t\t\t</div>\n\t\t\t<div class=\"col-md-6\">\n\t\t\t\t<center>\n\t\t\t\t\t<div style=\"margin:0 40px 0 40px;padding:8px 0 8px 0;box-shadow: 0px 0px 10px #b9b6b6;\">\n\t\t\t\t\t\t<p>Tổng Giá Trị Tồn :</p>\n\t\t\t\t\t\t<p>");
            EndContext();
            BeginContext(1392, 22, false);
#line 48 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
                      Write(ViewData["tonggiatri"]);

#line default
#line hidden
            EndContext();
            BeginContext(1414, 55, true);
            WriteLiteral(" VNĐ</p>\n\t\t\t\t\t</div>\n\n\t\t\t\t</center>\n\t\t\t</div>\n\t\t</div>\n");
            EndContext();
#line 55 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
         if (quyen == 0)
		{

#line default
#line hidden
            BeginContext(1583, 367, true);
            WriteLiteral(@"		<div class=""row"">
			<div class=""col-xs-12"">
				<div class=""box"" style=""padding:10px"">
					<table id=""example2"" class=""table table-bordered table-hover"">
						<thead>
							<tr>
								<th>
									Nhà Kho
								</th>
								<th>
									Số Lượng Tồn
								</th>
								<th>
									Giá Trị Tồn
								</th>
							</tr>
						</thead>
						<tbody>
");
            EndContext();
#line 75 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
                             foreach (var item in Model)
							{

#line default
#line hidden
            BeginContext(1995, 37, true);
            WriteLiteral("\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t");
            EndContext();
            BeginContext(2033, 44, false);
#line 79 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
                                   Write(Html.DisplayFor(modelItem => item.TenNhaKho));

#line default
#line hidden
            EndContext();
            BeginContext(2077, 40, true);
            WriteLiteral("\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t");
            EndContext();
            BeginContext(2118, 42, false);
#line 82 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
                                   Write(Html.DisplayFor(modelItem => item.TongTon));

#line default
#line hidden
            EndContext();
            BeginContext(2160, 40, true);
            WriteLiteral("\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t");
            EndContext();
            BeginContext(2201, 45, false);
#line 85 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
                                   Write(Html.DisplayFor(modelItem => item.GiaTriTong));

#line default
#line hidden
            EndContext();
            BeginContext(2246, 34, true);
            WriteLiteral(" VNĐ\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n");
            EndContext();
#line 88 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
							}

#line default
#line hidden
            BeginContext(2289, 75, true);
            WriteLiteral("\n\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div><!-- /.row -->\n");
            EndContext();
#line 96 "D:\1. All Download\cnpm-master\WareHouseSystem\Views\BaoCao\TonKho.cshtml"
		}

#line default
#line hidden
            BeginContext(2368, 47, true);
            WriteLiteral("\t</section>\n\n\t<!-- Main content -->\n\n</div>\n\n\n\n");
            EndContext();
            DefineSection("Scripts", async() => {
                BeginContext(2433, 1142, true);
                WriteLiteral(@"
	<script>
		$(document).ready(function () {
			$.ajax({
				url: ""Chart"",
				method: 'POST',
				dataType: 'json',
				success: function (d) {
					console.log(d.length);
					var a = [];
					var b = [];
					var c = [];
					$.each(d, function (i, item) {
						a.push(item.tenNhaKho);
						c.push(getRandomColor())
					})
					
					$.each(d, function (i, item) {
						b.push(item.tongTon);
					})
					console.log(a)
					console.log(c)
					var ctx = document.getElementById('myChart').getContext('2d');
					var chart = new Chart(ctx, {
						// The type of chart we want to create
						type: 'pie',

						// The data for our dataset
						data: {
							labels: a,
							datasets: [{
								backgroundColor: c,
								data: b,
							
							}]
						},
						// Configuration options go here
						options: {
							responsive: true,
							maintainAspectRatio: false
						}
					});
				}
			})
		})
		function getRandomColor() {
			var letters = '0123456789ABCDEF'.split('');
			var color = '#';
			for");
                WriteLiteral(" (var i = 0; i < 6; i++) {\n\t\t\t\tcolor += letters[Math.floor(Math.random() * 16)];\n\t\t\t}\n\t\t\treturn color;\n\t\t}\n\t</script>\n");
                EndContext();
            }
            );
        }
Пример #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(41, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"

            ViewData["Title"] = "Index";

#line default
#line hidden
            BeginContext(84, 29, true);
            WriteLiteral("\r\n<h1>Index</h1>\r\n\r\n<p>\r\n    ");
            EndContext();
            BeginContext(113, 59, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3bd98e871de389560a1f458bd97909ee8921759b7072", async() => {
                BeginContext(158, 10, true);
                WriteLiteral("Create New");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(172, 36, true);
            WriteLiteral("\r\n</p>\r\n<div class=\"card-columns\">\r\n");
            EndContext();
#line 13 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(249, 146, true);
                WriteLiteral("        <div class=\"card  align-content-center\" style=\"width:400px\">\r\n            <div class=\"card-body\">\r\n                <h4 class=\"card-title\">");
                EndContext();
                BeginContext(396, 43, false);
#line 17 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.FullName));

#line default
#line hidden
                EndContext();
                BeginContext(439, 44, true);
                WriteLiteral("</h4>\r\n                <p class=\"card-text\">");
                EndContext();
                BeginContext(484, 57, false);
#line 18 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Department.Description));

#line default
#line hidden
                EndContext();
                BeginContext(541, 6, true);
                WriteLiteral("</p>\r\n");
                EndContext();
#line 19 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
                if (User.IsInRole("Admin, Manager"))
                {
#line default
#line hidden
                    BeginContext(621, 20, true);
                    WriteLiteral("                    ");
                    EndContext();
                    BeginContext(643, 23, true);
                    WriteLiteral("|\r\n                    ");
                    EndContext();
                    BeginContext(666, 85, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3bd98e871de389560a1f458bd97909ee8921759b10254", async() => {
                        BeginContext(743, 4, true);
                        WriteLiteral("Edit");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_3.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 22 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
                    WriteLiteral(item.ID);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(751, 22, true);
                    WriteLiteral("\r\n                    ");
                    EndContext();
                    BeginContext(773, 86, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3bd98e871de389560a1f458bd97909ee8921759b12716", async() => {
                        BeginContext(849, 6, true);
                        WriteLiteral("Delete");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 23 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
                    WriteLiteral(item.ID);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(859, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 24 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(882, 20, true);
                WriteLiteral("\r\n\r\n                ");
                EndContext();
                BeginContext(902, 91, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3bd98e871de389560a1f458bd97909ee8921759b15305", async() => {
                    BeginContext(982, 7, true);
                    WriteLiteral("Details");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 28 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
                WriteLiteral(item.ID);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(993, 38, true);
                WriteLiteral("\r\n            </div>\r\n        </div>\r\n");
                EndContext();
#line 31 "C:\Users\Weird.Scar\Documents\GitHub\New_NBD\NBD\Views\Employees\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(1038, 8, true);
            WriteLiteral("</div>\r\n");
            EndContext();
            BeginContext(1046, 95, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3bd98e871de389560a1f458bd97909ee8921759b18028", async() => {
                BeginContext(1125, 12, true);
                WriteLiteral("Back to Home");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_9.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1141, 6, true);
            WriteLiteral("\r\n\r\n\r\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(114, 79, true);
            WriteLiteral("\r\n<td style=\"width:120px;\">\r\n    <div class=\"btn-group\" role=\"group\">\r\n        ");
            EndContext();
            BeginContext(193, 524, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "bb93b02da8f3570a23eaa1c062700e3995b5c02f4370", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            BeginWriteTagHelperAttribute();
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __tagHelperExecutionContext.AddHtmlAttribute(",", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
#line 6 "C:\Users\Arthur\source\repos\GuitarProjectWebsite\GuitarProjectWebsite\Views\Shared\_TableButtonsPartial.cshtml"
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = new SmallButtonModel
            {
                Action     = "Edit",
                ButtonType = "btn-primary",
                Glyph      = "pencil",
                Text       = "Edit button",
                GuitarId   = Model.GuitarId,
                ProducerId = Model.ProducerId,
                CategoryId = Model.CategoryId,
                UserId     = Model.UserId
            };

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, 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(717, 14, true);
            WriteLiteral("\r\n\r\n\r\n        ");
            EndContext();
            BeginContext(731, 422, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "bb93b02da8f3570a23eaa1c062700e3995b5c02f6857", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            BeginWriteTagHelperAttribute();
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __tagHelperExecutionContext.AddHtmlAttribute(",", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
#line 19 "C:\Users\Arthur\source\repos\GuitarProjectWebsite\GuitarProjectWebsite\Views\Shared\_TableButtonsPartial.cshtml"
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = new SmallButtonModel
            {
                Action     = "Details",
                ButtonType = "btn-success",
                Glyph      = "list",
                Text       = "Details button",
                GuitarId   = Model.GuitarId,
                ProducerId = Model.ProducerId,
                CategoryId = Model.CategoryId,
                UserId     = Model.UserId
            };

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, 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(1153, 6, true);
            WriteLiteral("\r\n\r\n\r\n");
            EndContext();
#line 32 "C:\Users\Arthur\source\repos\GuitarProjectWebsite\GuitarProjectWebsite\Views\Shared\_TableButtonsPartial.cshtml"
            if (User.IsInRole("Admin"))
            {
#line default
#line hidden
                BeginContext(1208, 332, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "bb93b02da8f3570a23eaa1c062700e3995b5c02f9440", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                BeginWriteTagHelperAttribute();
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __tagHelperExecutionContext.AddHtmlAttribute(",", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
#line 34 "C:\Users\Arthur\source\repos\GuitarProjectWebsite\GuitarProjectWebsite\Views\Shared\_TableButtonsPartial.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = new SmallButtonModel
                {
                    Action     = "Delete",
                    ButtonType = "btn-danger",
                    Glyph      = "trash",
                    Text       = "Delete button",
                    GuitarId   = Model.GuitarId,
                    ProducerId = Model.ProducerId,
                    CategoryId = Model.CategoryId,
                    UserId     = Model.UserId
                };

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, 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(1540, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 45 "C:\Users\Arthur\source\repos\GuitarProjectWebsite\GuitarProjectWebsite\Views\Shared\_TableButtonsPartial.cshtml"
            }

#line default
#line hidden
            BeginContext(1545, 21, true);
            WriteLiteral("\r\n    </div>\r\n</td>\r\n");
            EndContext();
        }