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); }
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); }
public void AddLogContragent(molchanov_logContragents element) { _logContragnts.Add(element); }