Пример #1
0
        public ActionResult SaveWishlist()
        {
            List <WishlistViewModel> wishlist = GetActivitiesFromSession();

            if (wishlist != null)
            {
                try {
                    var newWishlist = wishListRepo.SaveActivities(wishlist, null);
                    ViewBag.succes = "succesvol opgeslagen. Uw code is " + newWishlist.token;
                }
                catch
                {
                    ViewBag.errors = "Opslagen mislukt";
                }
            }
            return(View("Index", GetActivitiesFromSession()));
        }