recordToDelete is null in RemoveLink using WIN8 VS2010 MVC3

Dec 3, 2012 at 10:56 AM

I'm having trouble with the remove ajax method. Even though the ajax post gets executed which does a precheck to see if recordToDelete is null, by the time the key:value eg. id:22 get routed to RemoveFromCart() the value is null. I've modified global.asax routing to new { controller = "Home", action = "Index", id = -1 } and the debugger shows me -1 is passed to RemoveFromCart() but that doesn't help solve the problem