private molchanov_logInvoices _logInvoicesChanges(aspnet_Users user, molchanov_invoices element, string notice) { var res = new molchanov_logInvoices { date = DateTime.Now, userName = user.UserName, notice = "{element.number}: " + notice, invoiceID = element.id }; return(res); }
public int SaveInvoiceLog(molchanov_logInvoices element, bool withSave = true) { if (element.id == 0) { db.molchanov_logInvoices.Add(element); if (withSave) { Save(); } } else { db.Entry(element).State = EntityState.Modified; if (withSave) { Save(); } } return(element.id); }
public void AddLogInvoices(molchanov_logInvoices element) { _logInvoices.Add(element); }