Пример #1
0
 private void UpdateTheLoai(int maTheLoai, string tenTheLoai)
 {
     if (TheLoaiDAO.UpdateTheLoai(maTheLoai, tenTheLoai))
     {
         MessageBox.Show("Cập nhật thành công");
         Dispose();
     }
     else
     {
         MessageBox.Show("Cập nhật thất bại");
     }
 }
 public static void UpdateTheLoai(string idTheLoai, string tenTheLoai)
 {
     TheLoaiDAO.UpdateTheLoai(Int32.Parse(idTheLoai), tenTheLoai);
 }