javascript from controller asp.net mvc code example
Example 1: asp net mvc 5 return view from another controller
Return RedirectToRoute("Stuff");
Example 2: How to post Dynamic list to asp mvc controller
var feature = {
id: 123,
features: $scope.items
};
$http.post(url, JSON.stringify(feature)).success(function(result) {
alert('successfully sent to server');
}).error(function() {
alert('an error occurred');
});