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