Example #1
0
        public int SaveOrUpdate(ActionLogDTO actionLog)
        {
            var user = _userService.GetCurrentUser();

            return _actionLogRepository.SaveOrUpdate(new ActionLog
            {
                Id = actionLog.Id,
                ActionName = actionLog.ActionName,
                UserName = user.Name,
                UserGuid = user.UserGuid,
                ObjectId = actionLog.ObjectId,
                Date = DateTime.Now,
                Type = actionLog.Type
            });
        }
Example #2
0
 public int SaveOrUpdateLocalApp(ActionLogDTO actionLog)
 {
     return _actionLogRepository.SaveOrUpdate(new ActionLog
     {
         Id = 0,
         ActionName = actionLog.ActionName,
         UserName = actionLog.UserName,
         ObjectId = actionLog.ObjectId,
         Date = DateTime.Now,
         Type = actionLog.Type
     });
 }