public bool themCV(Cong_Viec th) { var t = (from a in db.Cong_Viecs where a.MACV == th.MACV select a).SingleOrDefault(); if (t == null) { db.Cong_Viecs.InsertOnSubmit(t); db.SubmitChanges(); return(true); } return(false); }
public bool suaCV(Cong_Viec th) { var t = (from a in db.Cong_Viecs where a.MACV == th.MACV select a).SingleOrDefault(); if (t != null) { t.MACV = th.MACV; t.NOIDUNGCV = th.NOIDUNGCV; db.SubmitChanges(); return(true); } return(false); }
partial void UpdateCong_Viec(Cong_Viec instance);
partial void DeleteCong_Viec(Cong_Viec instance);
partial void InsertCong_Viec(Cong_Viec instance);