#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(150, 1, true); WriteLiteral("\n"); EndContext(); #line 6 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" ViewData["Title"] = "Admin"; #line default #line hidden BeginContext(189, 27, true); WriteLiteral("<h2>\n Create Role\n</h2>\n"); EndContext(); BeginContext(216, 304, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6925960837794af3968a2d0a754912b7", async() => { BeginContext(269, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(275, 23, false); #line 13 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(298, 215, true); WriteLiteral("\n <label for=\"RoleName\" class=\"control-label\">Role Name</label>\n <input type=\"text\" id=\"RoleName\" name=\"RoleName\" class=\"form-control\" />\n <button type=\"Submit\" class=\"btn btn-default\">Create Role</button>\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (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(520, 32, true); WriteLiteral("\n<h2>\n Delete Role\n</h2>\n "); EndContext(); BeginContext(552, 369, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8bdc12bb47474db081586daa8cf2d742", async() => { BeginContext(605, 9, true); WriteLiteral("\n "); EndContext(); BeginContext(615, 23, false); #line 22 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(638, 79, true); WriteLiteral("\n <label for=\"RoleName\" class=\"control-label\">Role Name</label>\n "); EndContext(); BeginContext(718, 116, false); #line 24 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.DropDownList("RoleName", new SelectList(RoleMan.Roles.ToList()), "Select Role", new { @class = "form-control" })); #line default #line hidden EndContext(); BeginContext(834, 80, true); WriteLiteral("\n <button type=\"Submit\" class=\"btn btn-default\">Delete Role</button>\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (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(921, 43, true); WriteLiteral("\n <h2>\n Delete User\n </h2>\n "); EndContext(); BeginContext(964, 369, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "66054bb2ba824d7da0115fc0bf93f7de", async() => { BeginContext(1017, 9, true); WriteLiteral("\n "); EndContext(); BeginContext(1027, 23, false); #line 31 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(1050, 9, true); WriteLiteral("\n "); EndContext(); BeginContext(1060, 62, false); #line 32 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.Label("Email", "Email", new { @class = "control-label" })); #line default #line hidden EndContext(); BeginContext(1122, 9, true); WriteLiteral("\n "); EndContext(); BeginContext(1132, 114, false); #line 33 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.DropDownList("Email", new SelectList(UserMan.Users.ToList()), "Select User", new { @class = "form-control" })); #line default #line hidden EndContext(); BeginContext(1246, 80, true); WriteLiteral("\n <button type=\"Submit\" class=\"btn btn-default\">Delete User</button>\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (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(1333, 41, true); WriteLiteral("\n <h2>\n Add User to Role\n </h2>\n"); EndContext(); BeginContext(1374, 613, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "29e222e72a7d43a79bb42c22aa8d7315", async() => { BeginContext(1444, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(1450, 23, false); #line 40 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(1473, 9, true); WriteLiteral("\n <!--"); EndContext(); BeginContext(1483, 40, false); #line 41 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.Hidden("Email", User.Identity.Name)); #line default #line hidden EndContext(); BeginContext(1523, 8, true); WriteLiteral("-->\n "); EndContext(); BeginContext(1532, 62, false); #line 42 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.Label("Email", "Email", new { @class = "control-label" })); #line default #line hidden EndContext(); BeginContext(1594, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(1600, 114, false); #line 43 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.DropDownList("Email", new SelectList(UserMan.Users.ToList()), "Select User", new { @class = "form-control" })); #line default #line hidden EndContext(); BeginContext(1714, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(1720, 68, false); #line 44 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.Label("RoleName", "RoleName", new { @class = "control-label" })); #line default #line hidden EndContext(); BeginContext(1788, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(1794, 116, false); #line 45 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(Html.DropDownList("RoleName", new SelectList(RoleMan.Roles.ToList()), "Select Role", new { @class = "form-control" })); #line default #line hidden EndContext(); BeginContext(1910, 70, true); WriteLiteral("\n <button type=\"submit\" class=\"btn btn-primary\">Join Role</button>\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1987, 1, true); WriteLiteral("\n"); EndContext(); #line 48 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" foreach (var role in RoleMan.Roles.ToList()) { #line default #line hidden BeginContext(2035, 8, true); WriteLiteral(" <h2>"); EndContext(); BeginContext(2044, 9, false); #line 49 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(role.Name); #line default #line hidden EndContext(); BeginContext(2053, 6, true); WriteLiteral("</h2>\n"); EndContext(); #line 50 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" foreach (var user in UserMan.GetUsersInRoleAsync(role.Name).Result) { #line default #line hidden BeginContext(2137, 13, true); WriteLiteral(" <div>"); EndContext(); BeginContext(2151, 13, false); #line 52 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" Write(user.UserName); #line default #line hidden EndContext(); BeginContext(2164, 7, true); WriteLiteral("</div>\n"); EndContext(); #line 53 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" } #line default #line hidden #line 53 "/Users/paulwyatt/Desktop/CST465TermProject/Lab8/Views/Admin/Index.cshtml" } #line default #line hidden }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(150, 1, true); WriteLiteral("\n"); EndContext(); #line 6 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" ViewData["Title"] = "Admin"; #line default #line hidden BeginContext(189, 42, true); WriteLiteral(" <h2>\n Delete User\n </h2>\n "); EndContext(); BeginContext(231, 369, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3cc8cb2dea8545d9beecdb722edcc606", async() => { BeginContext(284, 9, true); WriteLiteral("\n "); EndContext(); BeginContext(294, 23, false); #line 13 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(317, 9, true); WriteLiteral("\n "); EndContext(); BeginContext(327, 62, false); #line 14 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.Label("Email", "Email", new { @class = "control-label" })); #line default #line hidden EndContext(); BeginContext(389, 9, true); WriteLiteral("\n "); EndContext(); BeginContext(399, 114, false); #line 15 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.DropDownList("Email", new SelectList(UserMan.Users.ToList()), "Select User", new { @class = "form-control" })); #line default #line hidden EndContext(); BeginContext(513, 80, true); WriteLiteral("\n <button type=\"Submit\" class=\"btn btn-default\">Delete User</button>\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (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(600, 41, true); WriteLiteral("\n <h2>\n Add User to Role\n </h2>\n"); EndContext(); BeginContext(641, 615, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "67d5f6451de84e07a92163e99cc3d9b5", async() => { BeginContext(711, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(717, 23, false); #line 22 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(740, 9, true); WriteLiteral("\n <!--"); EndContext(); BeginContext(750, 40, false); #line 23 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.Hidden("Email", User.Identity.Name)); #line default #line hidden EndContext(); BeginContext(790, 8, true); WriteLiteral("-->\n "); EndContext(); BeginContext(799, 62, false); #line 24 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.Label("Email", "Email", new { @class = "control-label" })); #line default #line hidden EndContext(); BeginContext(861, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(867, 114, false); #line 25 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.DropDownList("Email", new SelectList(UserMan.Users.ToList()), "Select User", new { @class = "form-control" })); #line default #line hidden EndContext(); BeginContext(981, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(987, 68, false); #line 26 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.Label("RoleName", "RoleName", new { @class = "control-label" })); #line default #line hidden EndContext(); BeginContext(1055, 5, true); WriteLiteral("\n "); EndContext(); BeginContext(1061, 116, false); #line 27 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(Html.DropDownList("RoleName", new SelectList(RoleMan.Roles.ToList()), "Select Role", new { @class = "form-control" })); #line default #line hidden EndContext(); BeginContext(1177, 72, true); WriteLiteral("\n <button type=\"submit\" class=\"btn btn-primary\">Add to Role</button>\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1256, 1, true); WriteLiteral("\n"); EndContext(); #line 30 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" foreach (var role in RoleMan.Roles.ToList()) { #line default #line hidden BeginContext(1304, 8, true); WriteLiteral(" <h2>"); EndContext(); BeginContext(1313, 9, false); #line 31 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(role.Name); #line default #line hidden EndContext(); BeginContext(1322, 6, true); WriteLiteral("</h2>\n"); EndContext(); #line 32 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" foreach (var user in UserMan.GetUsersInRoleAsync(role.Name).Result) { #line default #line hidden BeginContext(1406, 13, true); WriteLiteral(" <div>"); EndContext(); BeginContext(1420, 13, false); #line 34 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" Write(user.UserName); #line default #line hidden EndContext(); BeginContext(1433, 7, true); WriteLiteral("</div>\n"); EndContext(); #line 35 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" } #line default #line hidden #line 35 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Admin/Index.cshtml" } #line default #line hidden }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(83, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(85, 309, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b55b77c0da0c4d4f9427a5c7b9d7e852", async() => { BeginContext(138, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(145, 23, false); #line 5 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(168, 219, true); WriteLiteral("\r\n <label for=\"RoleName\" class=\"control-label\">Role Name</label>\r\n <input type=\"text\" id=\"RoleName\" name=\"RoleName\" class=\"form-control\" />\r\n <button type=\"Submit\" class=\"btn btn-default\">Create Role</button>\r\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (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(394, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(396, 453, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8ca2b1a6f0a94ce4b7402cc73f77072c", async() => { BeginContext(452, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(459, 23, false); #line 11 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(482, 360, true); WriteLiteral(@" <label for=""RoleName"" class=""control-label"">Role Name</label> <input type=""text"" id=""RoleName"" name=""RoleName"" class=""form-control"" /> <label for=""Email"" class=""control-label"">User Name</label> <input type=""text"" id=""Email"" name=""Email"" class=""form-control"" /> <button type=""Submit"" class=""btn btn-default"">Add User to Role</button> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (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(849, 103, true); WriteLiteral("\r\n<div class=\"row\">\r\n <div class=\"col-6\">\r\n <h2>Roles</h2>\r\n <ul class=\"list-group\">\r\n"); EndContext(); #line 22 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" foreach (var role in RoleMan.Roles) { #line default #line hidden BeginContext(1017, 44, true); WriteLiteral(" <li class=\"list-group-item\">"); EndContext(); BeginContext(1062, 9, false); #line 24 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(role.Name); #line default #line hidden EndContext(); BeginContext(1071, 7, true); WriteLiteral("</li>\r\n"); EndContext(); #line 25 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" } #line default #line hidden BeginContext(1093, 111, true); WriteLiteral(" </ul>\r\n\r\n </div>\r\n <div class=\"col-6\">\r\n <h2>Users</h2>\r\n <ul class=\"list-group\">\r\n"); EndContext(); #line 32 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" foreach (var user in UserMan.Users) { #line default #line hidden BeginContext(1269, 70, true); WriteLiteral(" <li class=\"list-group-item\">\r\n "); EndContext(); BeginContext(1340, 10, false); #line 35 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(user.Email); #line default #line hidden EndContext(); BeginContext(1350, 25, true); WriteLiteral("\r\n </li>\r\n"); EndContext(); #line 37 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" } #line default #line hidden BeginContext(1390, 35, true); WriteLiteral(" </ul>\r\n </div>\r\n</div>\r\n"); EndContext(); BeginContext(1425, 270, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "96835c2067ce49aabfec106ef1fc8c9a", async() => { BeginContext(1495, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1502, 23, false); #line 42 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden EndContext(); BeginContext(1525, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1532, 40, false); #line 43 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(Html.Hidden("Email", User.Identity.Name)); #line default #line hidden EndContext(); BeginContext(1572, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1579, 33, false); #line 44 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(Html.Hidden("RoleName", "Admins")); #line default #line hidden EndContext(); BeginContext(1612, 76, true); WriteLiteral("\r\n <button type=\"submit\" class=\"btn btn-primary\">Make me admin</button>\r\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1695, 49, true); WriteLiteral("\r\n<h1>List of Roles and Users in each Role</h1>\r\n"); EndContext(); #line 48 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" foreach (var role in RoleMan.Roles) { #line default #line hidden BeginContext(1785, 15, true); WriteLiteral("<div>\r\n <h3>"); EndContext(); BeginContext(1801, 9, false); #line 51 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(role.Name); #line default #line hidden EndContext(); BeginContext(1810, 7, true); WriteLiteral("</h3>\r\n"); EndContext(); #line 52 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" foreach (var user in UserMan.GetUsersInRoleAsync(role.Name).Result) { #line default #line hidden BeginContext(1898, 13, true); WriteLiteral(" <div>"); EndContext(); BeginContext(1912, 13, false); #line 54 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" Write(user.UserName); #line default #line hidden EndContext(); BeginContext(1925, 8, true); WriteLiteral("</div>\r\n"); EndContext(); #line 55 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" } #line default #line hidden BeginContext(1940, 8, true); WriteLiteral("</div>\r\n"); EndContext(); #line 57 "D:\Old Stuff\College Stuff\TERM_FALL_2018\Assignments\Code\CST465TERMPROJECT\Lab 8\Views\Admin\Index.cshtml" } #line default #line hidden }