protected void OnSaveButtonClick(MouseEventArgs e) => OnSaveClick.InvokeAsync(e);
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) { __builder.OpenComponent <Microsoft.AspNetCore.Components.Forms.EditForm>(0); __builder.AddAttribute(1, "Model", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Object>( #line 3 "/Users/micheleaponte/book/blazor/update/article-manager/frontendlib/Components/ItemDetails.razor" Model.Item #line default #line hidden )); __builder.AddAttribute(2, "OnValidSubmit", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <Microsoft.AspNetCore.Components.Forms.EditContext> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Forms.EditContext>(this, #line 3 "/Users/micheleaponte/book/blazor/update/article-manager/frontendlib/Components/ItemDetails.razor" e => OnSaveClick.InvokeAsync(Model.Item) #line default #line hidden ))); __builder.AddAttribute(3, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment <Microsoft.AspNetCore.Components.Forms.EditContext>)((context) => (__builder2) => { __builder2.AddMarkupContent(4, "\n "); __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator>(5); __builder2.CloseComponent(); __builder2.AddMarkupContent(6, "\n "); __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.ValidationSummary>(7); __builder2.CloseComponent(); __builder2.AddMarkupContent(8, "\n\n "); __builder2.AddContent(9, #line 7 "/Users/micheleaponte/book/blazor/update/article-manager/frontendlib/Components/ItemDetails.razor" FieldsTemplate(Model.Item) #line default #line hidden ); __builder2.AddMarkupContent(10, "\n\n "); __builder2.AddMarkupContent(11, "<button type=\"submit\" class=\"btn btn-primary\">Save</button>\n "); __builder2.OpenElement(12, "button"); __builder2.AddAttribute(13, "type", "button"); __builder2.AddAttribute(14, "class", "btn btn-warning"); __builder2.AddAttribute(15, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, #line 10 "/Users/micheleaponte/book/blazor/update/article-manager/frontendlib/Components/ItemDetails.razor" OnCancelClick #line default #line hidden )); __builder2.AddContent(16, "Cancel"); __builder2.CloseElement(); __builder2.AddMarkupContent(17, "\n"); } )); __builder.CloseComponent(); }