public void Insert(Lancamento lancamento) { _context.Lancamentos.Add(lancamento); _context.SaveChanges(); _auditService.Save(new AuditEvent { CreatedDate = DateTime.Now, Action = "Create", Entity = "Lancamento", Id = cc.Id }); }
public void Insert(ContaCorrente cc) { _context.ContaCorrentes.Add(cc); _context.SaveChanges(); _auditService.Save(new AuditEvent { CreatedDate = DateTime.Now, Action = "Create", Entity = "CC", Id = cc.IDConta }); }
public void Save(AuditEvent auditEvent) { _context.AuditEvents.Add(auditEvent); _context.SaveChanges(); }