C# Class MusicCatalogue.DataMappers.AlbumsMapper

Exibir arquivo Open project: vladislav-karamfilov/TelerikAcademy

Public Methods

Method Description
ToAlbumEntity ( AlbumModel albumModel, IRepository artistsRepository, IRepository songsRepository ) : Album
ToAlbumModel ( Album albumEntity ) : AlbumModel

Method Details

ToAlbumEntity() public static method

public static ToAlbumEntity ( AlbumModel albumModel, IRepository artistsRepository, IRepository songsRepository ) : Album
albumModel MusicCatalogue.DataTransferObjects.AlbumModel
artistsRepository IRepository
songsRepository IRepository
return MusicCatalogue.Models.Album

ToAlbumModel() public static method

public static ToAlbumModel ( Album albumEntity ) : AlbumModel
albumEntity MusicCatalogue.Models.Album
return MusicCatalogue.DataTransferObjects.AlbumModel