protected async Task CrtOrUptEmailAlert()
 {
     if (SmsAlertId > 0)
     {
         await SMSAlertService.UpdateAsync(SMSAlertCrtVM);
     }
     else
     {
         await SMSAlertService.CreateAsync(SMSAlertCrtVM);
     }
     navigationManager.NavigateTo("/smsalerts");
 }
        protected async override Task OnInitializedAsync()
        {
            if (!string.IsNullOrEmpty(Id))
            {
                var id = int.Parse(Id);
                if (id > 0)
                {
                    SMSAlertCrtVM = await SMSAlertService.FetchByIdAsync(id);

                    SmsAlertId = SMSAlertCrtVM.Id;
                }
            }
        }
        protected async Task DeleteSMSAlert(int id)
        {
            bool?result = await DialogService.Confirm("Are you sure?", "DELETE  SMS ALERT", new ConfirmOptions()
            {
                OkButtonText = "Yes", CancelButtonText = "No", ShowClose = false
            });

            if (result.Value == true)
            {
                var deletedNotification = await SMSAlertService.DeleteAsync(id);

                if (deletedNotification > 0)
                {
                }
                else
                {
                }
            }
        }
 protected async override Task OnInitializedAsync()
 {
     SMSAlertVMs = await SMSAlertService.FetchAllAsync();
 }