protected async Task CrtOrUptEmailAlert() { if (SmsAlertId > 0) { await SMSAlertService.UpdateAsync(SMSAlertCrtVM); } else { await SMSAlertService.CreateAsync(SMSAlertCrtVM); } navigationManager.NavigateTo("/smsalerts"); }