public void Insert(DAL.KetQuaThiTuyen kqtt) { if (kqtt != null) { dataContext.KetQuaThiTuyens.InsertOnSubmit(kqtt); Save(); } }
public void Delete(int id) { DAL.KetQuaThiTuyen temp = dataContext.KetQuaThiTuyens.SingleOrDefault(t => t.ID == id); if (temp != null) { dataContext.KetQuaThiTuyens.DeleteOnSubmit(temp); Save(); } }
public void Update(DAL.KetQuaThiTuyen kqtt) { DAL.KetQuaThiTuyen temp = dataContext.KetQuaThiTuyens.SingleOrDefault(t => t.ID == kqtt.ID); if (temp != null) { temp.CreatedBy = kqtt.CreatedBy; temp.CreatedDate = kqtt.CreatedDate; temp.Diem = kqtt.Diem; temp.NguoiChamThi = kqtt.NguoiChamThi; temp.ID = kqtt.ID; temp.MaMonThi = kqtt.MaMonThi; temp.FR_KEY = kqtt.FR_KEY; //temp.MaVongPhongVan = kqtt.MaVongPhongVan; temp.NgayThiTuyen = kqtt.NgayThiTuyen; temp.NhanXet = kqtt.NhanXet; temp.VongThi = kqtt.VongThi; Save(); } }