Beispiel #1
0
 public int CreateAccountingMatching(AccountingMatching entity)
 {
     using (var db = new LogistoDb())
     {
         return(Convert.ToInt32(db.InsertWithIdentity(entity)));
     }
 }
Beispiel #2
0
 public void UpdateAccountingMatching(AccountingMatching entity)
 {
     using (var db = new LogistoDb())
     {
         db.AccountingMatchings.Where(w => w.ID == entity.ID)
         .Set(u => u.IncomeAccountingId, entity.IncomeAccountingId)
         .Set(u => u.Sum, entity.Sum)
         .Update();
     }
 }