working example

This commit is contained in:
2018-02-26 12:07:12 +01:00
parent e5ae0c75cf
commit 0cc84f5a58
17 changed files with 4526 additions and 130 deletions

View File

@@ -1,2 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -1,12 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Track = /** @class */ (function () {
function Track(id, title, artist, duration) {
this.Id = id;
this.Title = title;
this.Artist = artist;
this.Duration = duration;
}
return Track;
}());
exports.Track = Track;

View File

@@ -1,2 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -1,24 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var MusicCatalogService = /** @class */ (function () {
function MusicCatalogService(repository) {
this.repository = repository;
}
MusicCatalogService.prototype.get = function () {
return this.repository.get();
};
MusicCatalogService.prototype.getById = function (id) {
return this.repository.getById(id);
};
MusicCatalogService.prototype.add = function (track) {
return this.repository.add(track);
};
MusicCatalogService.prototype.edit = function (id, track) {
return this.repository.edit(id, track);
};
MusicCatalogService.prototype.delete = function (id) {
return this.repository.delete(id);
};
return MusicCatalogService;
}());
exports.MusicCatalogService = MusicCatalogService;