title: Remove From Cart operation not rendering anything
body: <p>I got an issue with my Ajax.  When I clicked on the Remove From Cart, The ajax seems not rendering anything.  Any hint?  Here is my code:</p>
  
  <p>Index.cshtml</p>
  
  <pre><code>  @model Tp1WebStore3.ViewModels.ShoppingCartViewModel
  
    @{
       ViewBag.Title = "Shopping Cart";
    }
    &lt;script src="/Scripts/jquery-1.8.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
    &lt;script type="text/javascript"&gt;
       $(function () {
            $('.RemoveLink').click(function () {
                $.ajax({
                   url: '/Panier/RemoveFromCart',
                   data: { id: $(this).data('id') },
                   cache: false,
                   success: function (result) {
                       $('#row-' + result.DeleteId).fadeOut('slow');
                       $('#cart-status').text('Cart (' + result.CartCount + ')');
                       $('#update-message').text(result.Message);
                       $('#cart-total').text(result.CartTotal);
                   }
                });
                return false;
            });
       });
    &lt;/script&gt;
    &lt;h3&gt;
       &lt;em&gt;Details&lt;/em&gt; du panier:
    &lt;/h3&gt;
    &lt;p class="button"&gt;
        @Html.ActionLink("Checkout &gt;&gt;", "AddressAndPayment", "Checkout")
    &lt;/p&gt;
    &lt;div id="update-message"&gt;
    &lt;/div&gt;
    &lt;table&gt;
       &lt;tr&gt;
         &lt;th&gt;
            Produit
         &lt;/th&gt;
         &lt;th&gt;
            Prix (unitaire)
         &lt;/th&gt;
         &lt;th&gt;
            Quantite
         &lt;/th&gt;
         &lt;th&gt;&lt;/th&gt;
       &lt;/tr&gt;
       @foreach (var item in Model.CartItems)
       {
          &lt;tr id="row-@item.ProduitId"&gt;
             &lt;td&gt;
                @Html.ActionLink(item.Produit.Description,"Details", "Panier", new { id = 
                      item.ProduitId }, null)
             &lt;/td&gt;
             &lt;td&gt;
                 @item.Produit.Prix
             &lt;/td&gt;
             &lt;td id="item-count-@item.ProduitId"&gt;
                 @item.Quantite
             &lt;/td&gt;
             &lt;td&gt;
  
                &lt;a href="#" class="RemoveLink" data-id="@item.ProduitId"&gt; Remove From Cart &lt;/a&gt;
             &lt;/td&gt;
          &lt;/tr&gt;
       }
       &lt;tr&gt;
          &lt;td&gt;
             Total
          &lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td id="cart-total"&gt;
             @Model.CartTotal
          &lt;/td&gt;
       &lt;/tr&gt;
   &lt;/table&gt;
  </code></pre>
  
  <p>PanierController.cs</p>
  
  <pre><code>    // AJAX: /ShoppingCart/RemoveFromCart/5
      [HttpPost] 
      public ActionResult RemoveFromCart(int id)
      {
          // Remove the item from the cart
          var cart = ShoppingCart.GetCart(this.HttpContext);
  
          // Get the name of the album to display confirmation
          string produitDescription = dbProduit.Paniers
              .Single(item =&gt; item.PanierId == id).Produit.Description;
  
          // Remove from cart
          int itemCount = cart.RemoveFromCart(id);
  
          // Display the confirmation message
          var results = new ShoppingCartRemoveViewModel
          {
              Message = Server.HtmlEncode(produitDescription) +
                  " has been removed from your shopping cart.",
              CartTotal = cart.GetTotal(),
              CartCount = cart.GetCount(),
              ItemCount = itemCount,
              DeleteId = id
          };
          return Json(results);  
  </code></pre>
  
  <p>ShoppingCart.cs</p>
  
  <pre><code>    public int RemoveFromCart(int id)
      {
          // Get the cart
          var cartItem = db.Paniers.Single(
              cart =&gt; cart.CartId == ShoppingCartId
              &amp;&amp; cart.ProduitId == id);
  
          int itemCount = 0;
  
          if (cartItem != null)
          {
              if (cartItem.Quantite &gt; 1)
              {
                  cartItem.Quantite--;
                  itemCount = cartItem.Quantite;
              }
              else
              {
                  db.Paniers.Remove(cartItem);
              }
              // Save changes
              db.SaveChanges();
          }
          return itemCount;
  </code></pre>
  
  <p>Here is the Chrome output PF12 for the network tab</p>
  
  <p><img src="https://i.stack.imgur.com/BFMa2.png" alt="enter image description here"></p>