What is the procedure for performing an Add operation in MVC using Angular?
var addProductModule = angular.module("addProductModule", []);
addProductModule.factory("addProductService", ['$http', function ($http) {
return
{
function saveProduct(productToSave)
{
$http({
url : 'AddProduct',
method : "POST",
data : productToSave
})
return productToSave;
}
};
}])