Skip to content

Commit

Permalink
Yeni kayıt ekleme
Browse files Browse the repository at this point in the history
  • Loading branch information
bbilginn committed Feb 28, 2013
1 parent 41d3885 commit dac5e29
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
$scope.SanatciKaydet = function () {
//Post metoddan sonra
if ($scope.Ad.length > 0) {
$scope.Sanatcilar.push({ Ad: $scope.Ad, Albums: [] });
FormSifirla();
$http.post("http://localhost:8651/api/values", { Ad: $scope.Ad, Albums: [] })
.success(function (data, status, headers, config) {
$scope.Sanatcilar.push({ Ad: $scope.Ad, Albums: [] });
FormSifirla();
}).error(function (data, status, headers, config) {
alert(status);
});
}
};

Expand Down

0 comments on commit dac5e29

Please sign in to comment.