Esempio n. 1
0
 public ActionResult AddGiftToWishList(WishListDropDownViewModel model)
 {
     _wishListService.AddGiftToWishList(model.GiftId, Int32.Parse(model.WishListId));
     return Json(new { success = true });
 }
Esempio n. 2
0
        public ActionResult GetDropDownWishLists(int giftId)
        {
            var userId = CurrentUser.Id;

            var wishLists = _wishListService.GetUsersWishListsWithoutGift(giftId, userId).ToList();

            var model = new WishListDropDownViewModel()
            {
                GiftId = giftId,
                DropDownList = new SelectList(wishLists, "Id", "Name"),
            };
            return PartialView("_GetDropDownWishLists", model);
        }