System.register(["@angular/http", "rxjs/add/operator/map", "@angular/core"], function (exports_1, context_1) {
    "use strict";
    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        return c > 3 && r && Object.defineProperty(target, key, r), r;
    };
    var __metadata = (this && this.__metadata) || function (k, v) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
    };
    var __moduleName = context_1 && context_1.id;
    var http_1, core_1, CustomerServiceProvider;
    return {
        setters: [
            function (http_1_1) {
                http_1 = http_1_1;
            },
            function (_1) {
            },
            function (core_1_1) {
                core_1 = core_1_1;
            }
        ],
        execute: function () {
            CustomerServiceProvider = (function () {
                function CustomerServiceProvider(http) {
                    this.http = http;
                    this.getUrl = "/home/GetCustomers";
                    this.postUrl = "/home/PostCustomer";
                }
                CustomerServiceProvider.prototype.getCustomers = function () {
                    var resps;
                    resps = this.http.get(this.getUrl);
                    var custs;
                    custs = resps.map(function (resp) { return resp.json(); });
                    return custs;
                };
                CustomerServiceProvider.prototype.updateCustomer = function (cust) {
                    var res;
                    res = this.http.post(this.postUrl, cust);
                    return res;
                };
                return CustomerServiceProvider;
            }());
            CustomerServiceProvider = __decorate([
                core_1.Injectable(),
                __metadata("design:paramtypes", [http_1.Http])
            ], CustomerServiceProvider);
            exports_1("CustomerServiceProvider", CustomerServiceProvider);
        }
    };
});
//# sourceMappingURL=Customer.services.js.map