예제 #1
0
 public async Task AddErrorLog(string ErrSource, string ErrDesc)
 {
     ErrorlogBM ErrLog = new ErrorlogBM
     {
         ExceptionType   = "E",
         ExceptionSource = ErrSource,
         ExceptionMsg    = ErrDesc,
         LogDate         = DateTime.Now
     };
     await _AppErrLogRepository.InsertLog(ErrLog);
 }
예제 #2
0
        public async Task InsertLog(ErrorlogBM entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException("entity");
            }

            Errorlog DBEntity = new Errorlog
            {
                Id              = entity.Id,
                ExceptionType   = entity.ExceptionType,
                ExceptionSource = entity.ExceptionSource,
                ExceptionMsg    = entity.ExceptionMsg,
                LogDate         = entity.LogDate,
                LoginUserId     = entity.LoginUserId
            };

            entities.Add(DBEntity);
            await _DBContext.SaveChangesAsync();
        }
예제 #3
0
        public async Task InsertErrorLog(ErrorlogBM entity)
        {
            await _DBErrLogRepository.InsertLog(entity).ConfigureAwait(false);

            return;
        }