示例#1
0
        public async Task <ActionResult <IEnumerable <Reservation> > > GetUserAdvertisements(int userId)
        {
            var reservations = await resveReservationsRepository.AsQueryable()
                               .Where(res => res.UserId == userId).ToListAsync();

            return(reservations);
        }