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); }
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(); }
public async Task InsertErrorLog(ErrorlogBM entity) { await _DBErrLogRepository.InsertLog(entity).ConfigureAwait(false); return; }