private void BtnCapNhatSoLuongMonAn_Click(object sender, RoutedEventArgs e) { int maMonAn = Convert.ToInt32((dtgMonAn.SelectedItem as DataRowView).Row[0]); int soLuong = Int32.Parse(txtSoLuong.Text); BaseDAO.CapNhapSoLuongMonAn(maMonAn, soLuong); }
public static void CapNhapSoLuongMonAn(int MaMonAn, int SoLuong) { BaseDAO.CapNhapSoLuongMonAn(MaMonAn, SoLuong); }