xamarin forms display alert in viewmodel code example
Example: xamarin forms show alert
await App.Current.MainPage.DisplayAlert("Title", "message content", "OK");
await App.Current.MainPage.DisplayAlert("Title", "message content", "OK");