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