Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button ng-click="Delete(list.Id)"><i class="fa fa-remove"></i></button>
- $http.post('/Companies/Delete', { model: mod })
- .then(function (result) {
- if (result.data == true)
- $scope.CompaniesList.splice(index, 1);
- //$scope.$apply();
- showtoastNotification('Deleted !', 'Company deleted from database', 'info');
- //$scope.cancel();
- //loadCurrentPage();
- }, function () {
- showtoastNotification('Error !', 'Something went wrong please try again later', 'error');
- })
Add Comment
Please, Sign In to add comment