public ActionResult DeleteWish(int productId) { var user = new WebUser(); if (user.IsAuthorized) { var model = _wishService.DeleteWish(user.UserId, productId); return(Json(model)); } var cookieModel = _wishService.DeleteWish(null, productId); return(Json(cookieModel)); }