@page "$pagepath$" @using $vmnamespace$; @inherits BasePage $formfields$ @code { private $modelname$VM Model = new $modelname$VM(); private ValidateForm vform { get; set; } $fieldinit$ protected override async Task OnInitializedAsync() { $init$ await base.OnInitializedAsync(); } private async Task Submit(EditContext context) { await PostsForm(vform, "/api/$modelname$/add", (s) => "Sys.OprationSuccess"); } public void OnClose() { CloseDialog(); } }