Created
July 2, 2017 03:42
-
-
Save A2H111/f3315467aead6983fde5aeb5e0f3529e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.AddCustomer = function () { | |
//Assign the updated value to Customer object | |
$scope.Customer.customerID = $scope.txtCustomerNameVal; | |
$scope.Customer.companyName = $scope.txtCompanyNameVal; | |
$scope.Customer.contactName = $scope.txtContactNameVal; | |
$scope.Customer.contactTitle = $scope.txtContactTitleVal; | |
//Call the factory function to insert the customer | |
CustomerService.AddCustomer($scope).then(function (d) { | |
alert(d.data); | |
}, function (d) { | |
alert(d); | |
}); | |
//calling the function to close the modal popup | |
$scope.closeModalWindow(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment