public void Them() { if (cbnhanvien.SelectedIndex < 0) { ToastNotification.Show(this, "Chưa chọn giáo viên", null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter); return; } if (txttendn.Text == "" && txtmk.Text == "") { ToastNotification.Show(this, "Vui lòng điền đủ thông tin!", null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter); return; } DataTable numberr; dtuer = new DTO_User() { Pass = txtmk.Text, User = txttendn.Text }; numberr = _db.Them(ref err, dtuer, Convert.ToInt32(cbnhanvien.SelectedValue)); if (numberr.Rows.Count > 0) { ToastNotification.Show(this, numberr.Rows[0]["ErrMsg"].ToString(), null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter); } }