Ejemplo n.º 1
0
        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));
        }