Remove From Cart - Ajax Version Problem

Jul 30, 2013 at 1:59 PM
I have been workin on the tutorial of MvcMusicStore. However, ı stucked in part-8. The tutorial has been created on MVC3 platform but I am using MVC4 and have jquery-1.8.2.min.js version. After all I have not completed this step.
Hope you can help.
@model MvcMusicStore.ViewModel.ShoppingCartViewModel

@{
    ViewBag.Title = "Shopping Cart";
}

<script
    src  = "~/Scripts/jquery-1.8.2.js"
    type = "text/javascript">
</script>
   <script 
       type="text/javascript">
   </script>
<script
    type ="text/javascript">
    $(function () {
        $("RemoveLink").click(function () {
            var recordToDelete = $(this).attr("data-id");
            if (recordToDelete != "") {
                $.post("/ShoppingCart/RemoveFromCart", { "id": recordToDelete },
                    function (data) {
                        if (data.ItemCount == 0) {
                            $("#row-" + data.DeleteId).fadeOut("slow");
                        }
                        else {
                            $('#item-count-' + data.DeleteId).text(data.ItemCount);
                        }
                        $('#cart-total').text(data.CartTotal);
                        $('#update-message').text(data.Message);
                        $('#cart-status').text('Cart (' + data.CartCount + ')');
                    });
            }
        });
    });

</script>

<h3>
    <em>Review</em>
</h3>
<p class ="button">
    @Html.ActionLink("Checkout","AddressAndPayment","Checkout")
</p>
<div id ="update-message"></div>
<table>
    <tr>
        <th>AlbumName</th>
        <th>Price</th>
        <th>Quantity</th>
        <th></th>
    </tr>
    @foreach (var item in Model.CartItems)
    {
        <tr id ="row-@item.RecordId">
            <td>
                @Html.ActionLink(item.Album.Title,"Details","Store",new {id = item.AlbumId}, null)
            </td>
            <td>
                @item.Album.Price
            </td>
            <td id ="item-count-@item.RecordId">
                @item.Count
            </td>
            <td>
                <a href="#" class="RemoveLink" data-id="@item.RecordId">Remove from Cart</a>
            </td>
        </tr>
    }
    <tr>
        <td>TOTAL</td>
        <td></td>
        <td></td>
        <td id="cart-total">@Model.CartTotal</td>
    </tr>
</table>