예제 #1
0
 public void CreateAuditLog(string userName, string ipAddress, string areaAccessed,  DateTime timeAccessed, string action, string result )
 {
     ActivityLogs entity = new ActivityLogs();
     entity.Description = string.Format("IP Address: {0}, Area Access: {1}, Result: {2}", ipAddress, areaAccessed, result);
     entity.ExecutedBy = userName;
     entity.Timestamp = timeAccessed;
     entity.Type = action;
     this.activityLogsRepository.Create(entity);
 }
예제 #2
0
 public void SaveChanges(ActivityLogs entity)
 {
     this.activityLogsRepository.SaveChanges(entity);
 }
예제 #3
0
 public long Create(ActivityLogs entity)
 {
     return this.activityLogsRepository.Create(entity);
 }
예제 #4
0
 public bool CheckDataIfExists(ActivityLogs entity)
 {
     return false;
 }
예제 #5
0
 public bool CheckDataAndCodeIfExist(ActivityLogs entity)
 {
     return false;
 }
예제 #6
0
 public void SaveOrUpdate(ActivityLogs entity)
 {
     this.activityLogsRepository.SaveOrUpdate(entity);
 }