public async Task <ActionResult <IEnumerable <Reservation> > > GetUserAdvertisements(int userId) { var reservations = await resveReservationsRepository.AsQueryable() .Where(res => res.UserId == userId).ToListAsync(); return(reservations); }
public async Task <ActionResult <IEnumerable <Reservation> > > GetUserAdvertisements(int userId) { var reservations = await resveReservationsRepository.AsQueryable() .Where(res => res.UserId == userId).ToListAsync(); return(reservations); }