示例#1
0
文件: Logs.cs 项目: nditz/TMS-WEB
 public void LogAudit(string username, string func, string clientIp, string description, string action)
 {
     var newAudit = new AuditTrail();
     newAudit.Id = _uniqueId.GetId();
     newAudit.OsysDateTime = DateTime.Now;
     newAudit.InUseFunc = func;
     newAudit.ClientIp = clientIp;
     newAudit.Description = description;
     newAudit.Username = username;
     newAudit.Action = action;
     _repository.SaveNew(newAudit);
 }
示例#2
0
 public void LogAudit(string username, string actionType, string clientIp, string description, string action,string platform)
 {
     var newAudit = new AuditTrail();
     newAudit.Id = Guid.NewGuid();
     newAudit.OsysDateTime = DateTime.Now;
     newAudit.InUseFunc = actionType;
     newAudit.ClientIp = clientIp;
     newAudit.Description = description;
     newAudit.Username = username;
     newAudit.Action = action;
     newAudit.Platform = platform;
        // newAudit.PlatformId = Guid.Parse("78ab3f72-8cd1-4bbf-877b-85f01eb4dee2");
     _repository.SaveNew(newAudit);
 }