public async Task <List <BoatDisplayViewModel> > GetBoatsByCustomerId(int customerId) { var boats = await boatRepository.GetBoatsForCustomer(customerId); var model = mapper.Map <List <BoatDisplayViewModel> >(boats); return(model); }
public async Task <List <BoatDisplayViewModel> > GetBoatsByCustomerId(int customerId) { var boats = await boatRepository.GetBoatsForCustomer(customerId); var model = mapper.Map <List <BoatDisplayViewModel> >(boats); return(model); }