public int CreateAccountingMatching(AccountingMatching entity) { using (var db = new LogistoDb()) { return(Convert.ToInt32(db.InsertWithIdentity(entity))); } }
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(); } }