public void Add(HandledExceptionDTO handledException)
 {
     _handledExceptionRepository.Add(new Entities.HandledException()
     {
         ExceptionType = handledException.ExceptionType, Occurred = handledException.Occurred, StackTrace = handledException.StackTrace
     });
     _handledExceptionRepository.UnitOfWork.Commit();
 }
 public void Add(HandledExceptionDTO handledException)
 {
     if (string.IsNullOrEmpty(Setup.GetAPIKey()))
     {
         _handledExceptionRepository.Add(new Entities.HandledException()
         {
             ExceptionType = handledException.ExceptionType, Occurred = handledException.Occurred, StackTrace = handledException.StackTrace
         });
         _handledExceptionRepository.UnitOfWork.Commit();
     }
     else
     {
         using (var handledExceptionHelper = new ExceptionHelper(Guid.Parse(Setup.GetAPIKey())))
         {
             handledExceptionHelper.Add(new Entities.HandledException()
             {
                 ExceptionType = handledException.ExceptionType, Occurred = handledException.Occurred, StackTrace = handledException.StackTrace
             });
         }
     }
 }