Beispiel #1
0
        public JsonResult RemoveWishListLines(string lineIds)
        {
            BaseJsonResult baseJsonResult;

            try
            {
                List <string> ids = new List <string> {
                    lineIds
                };
                baseJsonResult = _wishListLinesRepository.RemoveWishListLines(StorefrontContext, _visitorContext, ids);
            }
            catch (Exception ex)
            {
                baseJsonResult = _modelProvider.GetModel <BaseJsonResult>();
                baseJsonResult.SetErrors(nameof(AddWishListLine), ex);
            }
            return(Json(baseJsonResult));
        }