public bool AddToWishlist(int aantalPersonen, int eventId, List <WishlistItem> items) { //Haal het event op uit de eventrepository Event gebeuren = eventRepository.GetById(eventId); //Voeg het toe aan de wishlistRepository bool isGelukt = wishlistRepository.AddToWishlist(gebeuren, aantalPersonen, items); return(isGelukt); }
public async Task <IActionResult> AddToWishlist(WishDto newWish) { return(Ok(await _repo.AddToWishlist(newWish))); }