public IActionResult GetTransaction() { _logger.Log(LogLevel.Trace, "A check on all transactions is being called"); var result = _transactionsManager.GetAll(); if (result == null) { _logger.Log(LogLevel.Error, "Couldn't find any transactions"); return(NotFound()); } _logger.Log(LogLevel.Information, "All transactions retrieved successfully"); return(Ok(result)); }