// GET: api/Bike public IEnumerable <BikeViewModel> Get() { var bikes = _bikeBll.GetAll(); return(bikes.Select(b => Mapper.Map <BikeViewModel>(b))); }
// GET: Bikes public ActionResult Index() { return(View(_bikeBll.GetAll())); }