public bool ThemChiTietDanhGia(ChiTietDanhGia ct) { try { var kq = TimChiTietDanhGia(ct.MaCTDG); if (kq != null) { throw new Exception(); } dc.ChiTietDanhGias.InsertOnSubmit(ct); return(true); } catch { return(false); } }
public bool SuaChiTietDanhGia(ChiTietDanhGia ct) { try { var kq = TimChiTietDanhGia(ct.MaCTDG); if (kq == null) { throw new Exception(); } //kq.MaTC = ct.MaTC; kq.MaCDTheoTC = ct.MaCDTheoTC; kq.MaKQDG = ct.MaKQDG; return(true); } catch { return(false); } }