Ejemplo n.º 1
0
        public async Task <IActionResult> GetComments([FromRoute] int id)
        {
            var comments = await _commentAppService
                           .GetByPostageIdAsync(id)
                           .ConfigureAwait(false);

            if (comments is null)
            {
                return(NoContent());
            }

            return(Ok(comments));
        }