Example #1
0
        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);
        }
Example #2
0
 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);
 }
Example #3
0
 public void AddLogInvoices(molchanov_logInvoices element)
 {
     _logInvoices.Add(element);
 }