public async Task <IActionResult> GetBikesByCategory(long catId) { var bikes = await _bikeRepository.GetBikesByCategoryAsync(catId); if (bikes != null) { return(Ok(_mapper.Map <IEnumerable <Bike>, IEnumerable <BikeDTO> >(bikes))); } return(NotFound()); }