public IHttpActionResult Get(int id) { Bike bike = _bikeService.GetBikeByID(id); if (!String.IsNullOrWhiteSpace(bike.ImageLocation)) { bike.ImageLocation = @"/Images/Bikes/" + Path.GetFileName(bike.ImageLocation); } else { bike.ImageLocation = ""; } return(Ok(bike)); }