public void Post(Sokoban.DataModels.Exception exception)
        {
            exception.CreateDate = DateTime.UtcNow;

            ExceptionsRepository exceptionsRepository = new ExceptionsRepository();

            exceptionsRepository.InsertException(exception);
        }
Пример #2
0
 public ExceptionController(ExceptionsRepository exceptionsRepository)
 {
     _exceptionsRepository = exceptionsRepository;
 }
 public ExceptionHandlerMiddleware(RequestDelegate next,
                                   ExceptionsRepository exceptionsRepository)
 {
     _next = next;
     _exceptionsRepository = exceptionsRepository;
 }