Пример #1
0
 public async void OnSaveCommands()
 {
     if (string.IsNullOrEmpty(DisciplinaryReason))
     {
         await App.Current.MainPage.DisplayAlert("HMS", "Enter Disciplinary Type", "OK");
     }
     else
     {
         DisciplinaryType disciplinary = new DisciplinaryType();
         disciplinary.name   = DisciplinaryReason;
         disciplinary.userId = App.userid;
         masterService.Savedisciplinary(disciplinary);
     }
 }