Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);