C# Class MusicCatalogue.DataMappers.Extensions

ファイルを表示 Open project: vladislav-karamfilov/TelerikAcademy

Public Methods

Method Description
CreateOrLoadAlbum ( IRepository albums, AlbumDetails albumDetails ) : Album
CreateOrLoadArtist ( IRepository artists, ArtistDetails artistDetails ) : Artist
CreateOrLoadSong ( IRepository songs, SongDetails songDetails ) : Song

Method Details

CreateOrLoadAlbum() public static method

public static CreateOrLoadAlbum ( IRepository albums, AlbumDetails albumDetails ) : Album
albums IRepository
albumDetails MusicCatalogue.DataTransferObjects.AlbumDetails
return MusicCatalogue.Models.Album

CreateOrLoadArtist() public static method

public static CreateOrLoadArtist ( IRepository artists, ArtistDetails artistDetails ) : Artist
artists IRepository
artistDetails MusicCatalogue.DataTransferObjects.ArtistDetails
return MusicCatalogue.Models.Artist

CreateOrLoadSong() public static method

public static CreateOrLoadSong ( IRepository songs, SongDetails songDetails ) : Song
songs IRepository
songDetails MusicCatalogue.DataTransferObjects.SongDetails
return MusicCatalogue.Models.Song