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); }
public void SaveChanges(ActivityLogs entity) { this.activityLogsRepository.SaveChanges(entity); }
public long Create(ActivityLogs entity) { return this.activityLogsRepository.Create(entity); }
public bool CheckDataIfExists(ActivityLogs entity) { return false; }
public bool CheckDataAndCodeIfExist(ActivityLogs entity) { return false; }
public void SaveOrUpdate(ActivityLogs entity) { this.activityLogsRepository.SaveOrUpdate(entity); }