Example #1
0
        public AddToWishListOutputModel Save(AddToWishListInputModel data)
        {
            WishListRepository repo = new WishListRepository(db);

            WishList temp = new WishList();

            temp.SiteID     = data.SiteID;
            temp.UserID     = data.UserID;
            temp.SiteItemID = data.SiteItemID;

            var res = repo.Insert(temp);

            AddToWishListOutputModel output = new AddToWishListOutputModel();

            output.SiteID = data.SiteID;


            return(output);
        }
Example #2
0
 public WishList Insert(WishList wishList)
 {
     _wishListRepository.Insert(wishList);
     return(wishList);
 }