public async Task LogExceptionAsnc(Exception ex) { await _erorrLogRepository.AddAsync(new ErrorLog() { CreatedTime = DateTime.UtcNow, InnerException = ex.InnerException.Message ?? null, Message = ex.Message, Source = ex.Source, StackTrace = ex.StackTrace }); }