Exemple #1
0
 public bool Update(CorporateCreditCardSchema obj)
 {
     try
     {
         _db.SubmitChanges();
     }
     catch (Exception ex)
     {
         Debug.Print(ex.Message);
         return(false);
     }
     return(true);
 }
Exemple #2
0
 public int Add(CorporateCreditCardSchema obj)
 {
     try
     {
         _db.CorporateCreditCardSchemas.InsertOnSubmit(obj);
         _db.SubmitChanges();
     }
     catch (Exception ex)
     {
         Debug.Print(ex.Message);
         return(-1);
     }
     return(_db.CorporateCreditCardSchemas.Max(x => x.CorporateCreditCardSchemaId));
 }