protected void SetInsuranceDetails() { _insurance = new Insurance { InsuranceName = "LIC", Caption = "Life Insurance Corporation", InsuranceCode = 100013 }; this.IjsRuntime.InvokeVoidAsync("setLocalStorage", "LocalValue", _insurance); }
private async Task LoadStateAsync() { _insurance = await GetAsync("getLocalStorage", "LocalValue"); }