public async Task <IActionResult> GetById(int id) { Idea item = await _ideaService.GetById(id); if (item == null) { _logger.LogWarning(LoggingEvents.Warning.GetItemNotFound, $"Idea id={id} not found"); return(NotFound()); } return(Success(item)); }