public JsonResult RemoveFromWishList(string wishListItemId) { var user = _userManager.GetUserAsync(User).Result; string userId = user.Id; var wishList = _repository.GetWishListByUserId(userId); WishListItem wishListItem = _repository.GetWishListItemById(int.Parse(wishListItemId)); _repository.RemoveWishListItem(wishListItem); if (_repository.SaveAll()) { var result = new { Success = "true", message = "Uspešno ste uklonili artikal iz korpe. " }; return(Json(result)); } else { var result = new { Success = "true", message = "Uspešno ste uklonili artikal iz korpe. " }; return(Json(result)); } }