Q:

How to pass two different format object in $http.post?

I am using angular.js and on controller action method I want to pass two parameters, one json object and another integer.
How can I do that?
$http.post('/Customization/SaveCustomization/', $scope.ListCollection).success(function (response) {
                    $('#cartID').html(response);
                });

here along with ListCollection i want to pass index of interger type also.
my controller action method is like this.
public ActionResult AddMealDealCustozmaitionItems(List<cOrderMealDealItems> lstMealItms, int index)
        {

            return PartialView();
        }

A:

Not sure if I get your question right, but you can create an object and pass it to the $http.post. Something like
var data = {
   'data': $scope.ListCollection,
   'index': $scope.index
}
$http.post('/.../', data).sucesss(..)

