Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1.         [AcceptVerbs(HttpVerbs.Get)]
  2.         public ActionResult GetWishListItemsForTabs(string wishlistId) {
  3.             var wishListId = string.IsNullOrEmpty(wishlistId) ? Convert.ToInt64(new XorHash().Decrypt(wishlistId)) : 0;
  4.             var model = new WishListModel(WishList.ReferralTypeEnum.CartWishList, 2);
  5.             if (model.IsWishlistOwner) return Json(WishListHtmlDictionary(wishListId));
  6.             Response.StatusCode = (int) HttpStatusCode.InternalServerError;
  7.             return Json(new {responseText = "User is not owner of the requested wishlist" });
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement