예제 #1
0
        private molchanov_logContragents _logContragentChanges(aspnet_Users user, molchanov_contragents contragent, string notice)
        {
            var res = new molchanov_logContragents {
                date = DateTime.Now, userName = user.UserName, notice = "{contragent.name}: " + notice, contragentID = contragent.id
            };

            return(res);
        }
예제 #2
0
 public int SaveContragentLog(molchanov_logContragents element, bool withSave = true)
 {
     if (element.id == 0)
     {
         db.molchanov_logContragents.Add(element);
         if (withSave)
         {
             Save();
         }
     }
     else
     {
         db.Entry(element).State = EntityState.Modified;
         if (withSave)
         {
             Save();
         }
     }
     return(element.id);
 }
예제 #3
0
 public void AddLogContragent(molchanov_logContragents element)
 {
     _logContragnts.Add(element);
 }