Esempio n. 1
0
 /// <summary>
 /// 更新日志
 /// </summary>
 /// <param name="log"></param>
 /// <returns></returns>
 public bool UpdateEventlog( EventLog log )
 {
     try {
         eventlogRepository.Update(log);
         Save();
         return true;
     } catch {
         return false;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 创建日志
 /// </summary>
 /// <param name="log"></param>
 /// <returns></returns>
 public int CreateEventlog( EventLog log )
 {
     try {
         eventlogRepository.Add(log);
         Save();
         return log.ID;
     } catch {
         return -1;
     }
 }