@code { [Inject] public IJSRuntime JsRuntime { get; set; } [Parameter] public RenderFragment Title { get; set; } private string elementid = "modal_profile"; Models.AccountModel _account = new(); /// tmp string whereFrom = "г. Санкт-Петербург"; string veryfied = "Верифицирован"; string status = "свободен"; public void Open(Models.AccountModel account) { JsRuntime.InvokeVoidAsync("OpenModal", elementid); if (account != null) { _account = account; } } public void Close() { JsRuntime.InvokeVoidAsync("CloseModal", elementid); } }