public async Task <IActionResult> Get([FromRoute] int id) { var item = await _heroAppService .GetByIdAsync(id) .ConfigureAwait(false); return(Ok(item)); }
public async Task <IActionResult> Get([FromRoute] int id) { return(OkOrNotFound(await _heroAppService .GetByIdAsync(id) .ConfigureAwait(false))); }