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)); }
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)); }