public async Task <IActionResult> Get(int id) { try { var bike = await _bikeService.GetBikeAsync(id); return(Ok(bike)); } catch (NullReferenceException) { return(NotFound()); } }
public async Task <IActionResult> Get(int id) { try { var bike = await _bikeService.GetBikeAsync(id); return(Ok(bike)); } catch (NullReferenceException) { return(NotFound()); } }