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); } }
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); } }
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); } }
public virtual int Delete(KB_LCTT_TT user) { try { //user.IsDelete = true; db.SubmitChanges(); return 0; } catch (Exception e) { throw new Exception(e.Message); } }