private void AdicionarCheque()
        {
            Adicionar ad = new Adicionar();

            ad.ShowDialog();

            ad.Cheques.ForEach(c => Cheques.Add(c));
            dataGrid.Items.Refresh();

            RecalculaTotal();
            dataGrid.Focus();
            if (dataGrid.Items.Count > 0)
            {
                dataGrid.SelectedIndex = 0;
            }
        }
Example #2
0
        public double Adicionar(double valor1, double valor2)
        {
            Adicionar adicionar = new Adicionar();

            return(adicionar.Calcule(valor1, valor2));
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(52, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"

            ViewData["Title"] = "EditarProduto";
            Layout            = "~/Views/Shared/Administrativa.cshtml";

#line default
#line hidden
            BeginContext(149, 157, true);
            WriteLiteral("\r\n\t<div class=\"container\">\r\n\t\t<h2>Collapsible List Group</h2>\r\n\t\t<p>Click on the collapsible panel to open and close it.</p>\r\n\t\t<div class=\"panel-group\">\r\n\r\n");
            EndContext();
#line 13 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"

            List <ApplicationCommerce.ViewModel.ProdutoEditar> edit = ViewBag.Produtos;
            List <Ingrediente> completa = ViewBag.Ingredientes;
            List <Ingrediente> Adicionar;
            string             collapse = "";
            int    i    = 0;
            string nome = "";
            foreach (var produto in edit)
            {
                if (nome != produto.Produtos.Nome)
                {
                    Adicionar = completa.ToList();
                    nome      = produto.Produtos.Nome;
                    collapse  = "collapse" + @i;


#line default
#line hidden
                    BeginContext(766, 139, true);
                    WriteLiteral("<div class=\"panel panel-default\">\r\n\t\t\t\t\t\t\t<div class=\"panel-heading\">\r\n\t\t\t\t\t\t\t\t<h4 class=\"panel-title\">\r\n\t\t\t\t\t\t\t\t\t<a data-toggle=\"collapse\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 905, "\"", 922, 2);
                    WriteAttributeValue("", 912, "#", 912, 1, true);
#line 30 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    WriteAttributeValue("", 913, collapse, 913, 9, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(923, 1, true);
                    WriteLiteral(">");
                    EndContext();
                    BeginContext(925, 21, false);
#line 30 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    Write(produto.Produtos.Nome);

#line default
#line hidden
                    EndContext();
                    BeginContext(946, 47, true);
                    WriteLiteral("</a>\r\n\t\t\t\t\t\t\t\t</h4>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 993, "\"", 1007, 1);
#line 33 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    WriteAttributeValue("", 998, collapse, 998, 9, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1008, 111, true);
                    WriteLiteral(" class=\"panel-collapse collapse\">\r\n\t\t\t\t\t\t\t\t<ul class=\"list-group\">\r\n\t\t\t\t\t\t\t\t\t<!-- ingredientes do produto -->\r\n");
                    EndContext();
#line 36 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"

                    int qtdIngrediente = 0;
                    foreach (var ingrediente in edit)
                    {
                        if (produto.Produtos.IdProduto == ingrediente.ProdutoHasIngredientes.ProdutoId &&
                            ingrediente.Produtos.IdProduto == produto.Produtos.IdProduto)
                        {
                            qtdIngrediente++;

#line default
#line hidden
                            BeginContext(1437, 63, true);
                            WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"list-group-item\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>");
                            EndContext();
                            BeginContext(1501, 29, false);
#line 45 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                            Write(ingrediente.Ingredientes.Nome);

#line default
#line hidden
                            EndContext();
                            BeginContext(1530, 26, true);
                            WriteLiteral("  </strong><span> </span> ");
                            EndContext();
                            BeginContext(1557, 45, false);
#line 45 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                            Write(ingrediente.ProdutoHasIngredientes.Quantidade);

#line default
#line hidden
                            EndContext();
                            BeginContext(1602, 70, true);
                            WriteLiteral(" g\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 row pull-right\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t");
                            EndContext();
                            BeginContext(1672, 231, false);
                            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c0e1765db62840fd8bdc86db9066930b", async() => {
                                BeginContext(1866, 33, true);
                                WriteLiteral("<i class=\"fa fa-trash fa-2x\"></i>");
                                EndContext();
                            }
                                                                                        );
                            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                            if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                            {
                                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                            }
                            BeginWriteTagHelperAttribute();
#line 47 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                            WriteLiteral(ingrediente.ProdutoHasIngredientes.IdProdutoHasCategoria);

#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);
                            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
                            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                            if (!__tagHelperExecutionContext.Output.IsContentModified)
                            {
                                await __tagHelperExecutionContext.SetOutputContentAsync();
                            }
                            Write(__tagHelperExecutionContext.Output);
                            __tagHelperExecutionContext = __tagHelperScopeManager.End();
                            EndContext();
                            BeginContext(1903, 132, true);
                            WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div><span> </span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-1 pull-right\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" data-toggle=\"tooltip\"");
                            EndContext();
                            BeginWriteAttribute("rel", " rel=\"", 2035, "\"", 2176, 5);
#line 50 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                            WriteAttributeValue("", 2041, ingrediente.ProdutoHasIngredientes.IdProdutoHasCategoria, 2041, 57, false);

#line default
#line hidden
                            WriteAttributeValue("", 2098, "|", 2098, 1, true);
#line 50 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                            WriteAttributeValue("", 2099, ingrediente.ProdutoHasIngredientes.Quantidade, 2099, 46, false);

#line default
#line hidden
                            WriteAttributeValue("", 2145, "|", 2145, 1, true);
#line 50 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                            WriteAttributeValue("", 2146, ingrediente.Ingredientes.Nome, 2146, 30, false);

#line default
#line hidden
                            EndWriteAttribute();
                            BeginContext(2177, 136, true);
                            WriteLiteral(" title=\"Editar quantidade usada\" class=\"ModalEditarIng\"><i class=\"fa fa-edit fa-2x\"></i></a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</li>  \r\n");
                            EndContext();
                            BeginContext(2315, 104, true);
                            WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t\t<!-- Removendo ingredientes que já possuem no produto para nao add ingrediente repetido-->\r\n");
                            EndContext();
#line 55 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                            Adicionar.RemoveAll(val => val.IdIngrediente == ingrediente.Ingredientes.IdIngrediente);
                        }
                    }
                    if (qtdIngrediente == 0)
                    {
#line default
#line hidden
                        BeginContext(2596, 91, true);
                        WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t<li class=\"list-group-item text-danger\"><h4>Produto sem ingredientes</h4></li>\r\n");
                        EndContext();
#line 61 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    }


#line default
#line hidden
                    BeginContext(2712, 23, true);
                    WriteLiteral("\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(2735, 1141, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "40813ea6587949f886b0d671a7e947cd", async() => {
                        BeginContext(2807, 11, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t");
                        EndContext();
                        BeginContext(2818, 66, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7b0e6a812c644762a66255fcef6627bb", async() => {
                        }
                                                                                    );
                        __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
                        __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper);
#line 65 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                        __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary = global::Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly;

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-summary", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(2884, 119, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t<div class=\"margin form-group \">\r\n\t\t\t\t\t\t\t\t\t\t<label>Adicionar ingrediente a essse produto</label>\r\n\t\t\t\t\t\t\t\t\t\t");
                        EndContext();
                        BeginContext(3003, 172, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7dc3e00db5f54e98b5c38511cd771d54", async() => {
                        }
                                                                                    );
                        __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.SelectTagHelper>();
                        __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper);
#line 68 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                        __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProdutoHasIngredientes.Ingrediente.IdIngrediente);

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
#line 68 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                        __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.Items = (new SelectList(Adicionar.ToList(), "IdIngrediente", "Nome"));

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("asp-items", __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.Items, 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(3175, 12, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t\t");
                        EndContext();
                        BeginContext(3187, 91, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a10b9c854faf44efbc774cdf9612bc21", async() => {
                        }
                                                                                    );
                        __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
                        __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#line 69 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                        __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProdutoHasIngredientes.IngredienteId);

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(3278, 138, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t<div class=\"margin form-group \">\r\n\t\t\t\t\t\t\t\t\t\t<label>Quantidade do ingrediente (Em gramas)</label>\r\n\t\t\t\t\t\t\t\t\t\t");
                        EndContext();
                        BeginContext(3416, 96, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3eb5d6c544ea49f6983fbfbb64579a43", async() => {
                        }
                                                                                    );
                        __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                        __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#line 74 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                        __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProdutoHasIngredientes.Quantidade);

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(3512, 12, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t\t");
                        EndContext();
                        BeginContext(3524, 89, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a7a2fcd879d3487ca10cc22f1d8f58ed", async() => {
                        }
                                                                                    );
                        __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
                        __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#line 75 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                        __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProdutoHasIngredientes.Quantidade);

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(3613, 103, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t<div class=\"panel-footer\">\r\n\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"IdProduct\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 3716, "\"", 3751, 1);
#line 78 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                        WriteAttributeValue("", 3724, produto.Produtos.IdProduto, 3724, 27, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(3752, 117, true);
                        WriteLiteral(" />\r\n\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" value=\"Salvar\" class=\"btn btn-success\" />\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t</div>   \r\n\t\t\t\t\t\t\t\t");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_7.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(3876, 52, true);
                    WriteLiteral("                     \r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n");
                    EndContext();
#line 84 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    i++;
                }
            }

#line default
#line hidden
            BeginContext(3955, 12, true);
            WriteLiteral("\t\t\t\t<br/> \r\n");
            EndContext();
            BeginContext(3973, 76, true);
            WriteLiteral("\t\t</div>\r\n\t</div>\r\n\r\n\r\n<!-- MODAL EDITAR INGREDIENTE -->\r\n \r\n<!-- FORM -->\r\n");
            EndContext();
            BeginContext(4049, 1434, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5042dc9a0d1941e9bdc5b848d731ac30", async() => {
                BeginContext(4087, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(4090, 66, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "da7e53d44025471e83a3bd34930bb417", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper);
#line 97 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary = global::Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-summary", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4156, 503, true);
                WriteLiteral(@"
	<div class=""modal fade"" id=""ModalEditIngrediente"" tabindex=""-1"" role=""dialog"" aria-labelledby=""ModalEditIngrediente"" aria-hidden=""true"">
	<div class=""modal-dialog"" role=""document"">
		<div class=""modal-content"">
		<div class=""modal-header"">
			<h5 class=""modal-title"" id=""exampleModalLabel"">Alterar ingrediente</h5>
			<button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close"">
			<span aria-hidden=""true"">&times;</span>
			</button>
		</div>
		<div class=""modal-body"">
			"            );
                EndContext();
                BeginContext(4659, 533, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fa5f7631f51148a8800415bc9648acb6", async() => {
                    BeginContext(4665, 93, true);
                    WriteLiteral("\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t<label   class=\"col-form-label\">Ingrediente:</label>\r\n\t\t\t\t");
                    EndContext();
                    BeginContext(4758, 101, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "c1e0d39e87e944d998a405fd2389bf58", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#line 111 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Ingredientes.Nome);

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_8.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                    BeginWriteTagHelperAttribute();
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __tagHelperExecutionContext.AddHtmlAttribute("readonly", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.Name = (string)__tagHelperAttribute_10.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(4859, 120, true);
                    WriteLiteral("\r\n\t\t\t</div>\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t<label for=\"message-text\" class=\"col-form-label\">Quantidade:</label>\r\n\t\t\t\t");
                    EndContext();
                    BeginContext(4979, 90, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "062a78d819324754a65be1e9fbb72e74", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#line 115 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProdutoHasIngredientes.Quantidade);

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(5069, 6, true);
                    WriteLiteral("\r\n\t\t\t\t");
                    EndContext();
                    BeginContext(5075, 88, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cfcc001f8a8443849fa7f38234c8298b", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#line 116 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                    __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProdutoHasIngredientes.Quantidade);

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(5163, 22, true);
                    WriteLiteral("<br />\r\n\t\t\t</div>\r\n\t\t\t");
                    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);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(5192, 284, true);
                WriteLiteral(@"
		</div>
		<div class=""modal-footer"">
			<input type=""hidden"" name=""IdE"" id=""IdE"" />
			<button type=""button"" class=""btn btn-danger"" data-dismiss=""modal"">Cancelar</button>
			<input type=""submit"" value=""Alterar"" class=""btn btn-success"" />
		</div>
		</div>
	</div>
	</div>
");
                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_12.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(5483, 83, true);
            WriteLiteral("\r\n<!-- FORM -->\r\n <!-- --------------- FIM MODAL --------------------- -->\r\n\r\n \r\n\r\n");
            EndContext();
            DefineSection("Scripts", async() => {
                BeginContext(5584, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 135 "C:\Users\Gabriel\Documents\Projetos\ApplicationCommerce\Views\Administrativa\EditarProduto.cshtml"
                await Html.RenderPartialAsync("_ValidationScriptsPartial");

#line default
#line hidden
            }
                          );
        }