protected async Task HandleValidSubmit()
        {
            if (policyRequestModel.FirstName != null) // is a new creation
            {
                var policyPostResponse = await PremiumServiceProvider.AddPolicy(policyRequestModel);

                NavigationManager.NavigateTo("/");
            }
            else
            {
                await PremiumServiceProvider.Updatepolicy(policyRequestModel);

                NavigationManager.NavigateTo("/");
            }
        }
 protected override async Task OnInitializedAsync()
 {
     policyList = (await PremiumServiceProvider.GetAllPolicy()).ToList();
 }
示例#3
0
        protected override async Task OnInitializedAsync()
        {
            policyRequestModelDetails = await PremiumServiceProvider.GetPolicy(Id);

            base.OnInitialized();
        }
        protected override async Task OnInitializedAsync()
        {
            LookUpData = await PremiumServiceProvider.GetLookUpData();

            base.OnInitialized();
        }