Beispiel #1
0
        //wishlist bestaat nog niet, dus ook niet de items waar number of persons in staat
        public ActionResult AddItemToSesWishlist(int numberOfpersones, int activityId)
        {
            Activities activity = wishListRepo.GetWholeActivity(activityId);

            if (activity == null)
            {
                ViewBag.errors = "Kon activiteit niet vinden";
                return(View("Index", GetActivitiesFromSession()));
            }
            else
            {
                AddActivityToSesWishlist(numberOfpersones, activity);
            }
            return(View("Index", GetActivitiesFromSession()));
        }