public static bool Insert(TiepNhan tn) { try { db.TiepNhans.InsertOnSubmit(tn); db.SubmitChanges(); return(true); } catch (Exception) { return(false); } }
public void SubmitChanges() { _db.SubmitChanges(); }