public Artist ConvertToArtist(IMusicSystemData musicSystemData) { Artist artist = new Artist { Name = this.Name, DateOfBirth = this.DateOfBirth }; Country country = musicSystemData.Countries.All().FirstOrDefault(c => c.Name == this.Country); if (country == null) { country = new Country { Name = this.Country }; } artist.Country = country; foreach (var albumName in this.Albums) { artist.Albums.Add(new Album { Name = albumName }); } foreach (var songName in this.Songs) { artist.Songs.Add(new Song { Name = songName }); } return(artist); }
public ArtistsController(IMusicSystemData db) { this.db = db; }
public SongsController(IMusicSystemData db) { this.db = db; }
public BaseController(IMusicSystemData db) { this.Db = db; }
public BaseController(IMusicSystemData data) { this.data = data; }
public SongsController(IMusicSystemData data) : base(data) { }
public ArtistsController(IMusicSystemData data) : base(data) { }
public GenresController(IMusicSystemData data) { this.data = data; }
protected BaseController(IMusicSystemData data) { this.Data = data; }
public CountriesController(IMusicSystemData data) { this.data = data; }
public ArtistsController() { this.data = new MusicSystemData(); }
public AlbumsController(IMusicSystemData data) { this.data = data; }
public ArtistsController(IMusicSystemData data) { this.data = data; }
public GenresController(IMusicSystemData data) { this.data = data; }
public AlbumsController(IMusicSystemData data) { this.data = data; }
public SongsController(IMusicSystemData data) { this.data = data; }
public ArtistsController(IMusicSystemData data) { this.data = data; }
public ProducersController(IMusicSystemData data) { this.data = data; }
public AlbumsController(IMusicSystemData db) { this.db = db; }
public SongsController(IMusicSystemData data) { this.data = data; }
public ProducersController(IMusicSystemData data) { this.data = data; }
protected BaseApiController(IMusicSystemData data) { this.data = data; }
public AlbumsController(IMusicSystemData data) : base(data) { }
public CountriesController(IMusicSystemData data) { this.data = data; }