private void OnSaveClickCommand() { try { if (!_modelTrain.IsBusy) { if (CheckInputData()) { IsLoading = true; ItemEdit.MaMonHoc = MaMonHoc; ItemEdit.TenMonHoc = TenMonHoc; ItemEdit.ThuocNhom = SelectedType.TypeID; ItemEdit.DVHT = DVHT; ItemEdit.TS = TS; ItemEdit.LT = LT; ItemEdit.BT = BT; ItemEdit.TH = TH; ItemEdit.BTL = BTL; ItemEdit.DA = DA; ItemEdit.LA = LA; _modelTrain.SaveSubjectAsync(ItemEdit); } } } catch (Exception ex) { MessageCustomize.Show(ex.Message); } }