Пример #1
0
 public virtual void Remove(KB_LCTT_TT user)
 {
     try
     {
         db.KB_LCTT_TTs.DeleteOnSubmit(user);
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
Пример #2
0
 public virtual void Create(KB_LCTT_TT user)
 {
     try
     {
         this.db.KB_LCTT_TTs.InsertOnSubmit(user);
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
Пример #3
0
 public virtual void Update(KB_LCTT_TT user)
 {
     try
     {
         KB_LCTT_TT userOld = this.GetById(user.CHI_TIEU);
         userOld = user;
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
Пример #4
0
 public virtual int Delete(KB_LCTT_TT user)
 {
     try
     {
         //user.IsDelete = true;
         db.SubmitChanges();
         return 0;
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }