public void SuaThongTinLopADO(Lop lop) { if (connection.State != ConnectionState.Open) { connection.Open(); } SqlCommand command = new SqlCommand("SuaThongTinLop", connection); command.CommandType = CommandType.StoredProcedure; command.Parameters.AddWithValue("@MaLop", lop.MaLop); command.Parameters.AddWithValue("@TenLop", lop.TenLop); command.Parameters.AddWithValue("@SiSo", lop.SiSo); command.Parameters.AddWithValue("@MaKhoi", lop.MaKhoi); command.ExecuteNonQuery(); connection.Close(); }
public void SuaThongTinLopBUS(Lop lop) { lopObject.SuaThongTinLopADO(lop); }