Esempio n. 1
0
        public async Task <List <BoatDisplayViewModel> > GetBoatsByCustomerId(int customerId)
        {
            var boats = await boatRepository.GetBoatsForCustomer(customerId);

            var model = mapper.Map <List <BoatDisplayViewModel> >(boats);

            return(model);
        }