C# Class MusicCatalogue.DataMappers.SongsMapper

显示文件 Open project: vladislav-karamfilov/TelerikAcademy

Public Methods

Method Description
ToSongEntity ( SongModel songModel, IRepository albumsRepository, IRepository artistsRepository ) : Song
ToSongModel ( Song songEntity ) : SongModel

Method Details

ToSongEntity() public static method

public static ToSongEntity ( SongModel songModel, IRepository albumsRepository, IRepository artistsRepository ) : Song
songModel MusicCatalogue.DataTransferObjects.SongModel
albumsRepository IRepository
artistsRepository IRepository
return MusicCatalogue.Models.Song

ToSongModel() public static method

public static ToSongModel ( Song songEntity ) : SongModel
songEntity MusicCatalogue.Models.Song
return MusicCatalogue.DataTransferObjects.SongModel