I want to use:
$.ajax({url:'controller/method ?startDate=' + startDate + '& endDate=' + endDate});
In the controller I have a method like this:
public PartialView GetChartDate(DateTime? startDate, DateTime? endDate){}
When I do this I end up passing null for endDate to the MVC method even though it has value. How do I pass multiple params to the MVC method?
Ideas and suggestions greatly appreciated !