Example #1
0
        internal static Artist ToArtist(ArtistModel artistModel, Artist artist = null)
        {
            if (artist == null)
            {
                artist = new Artist();
            }

            artist.FirstName   = artistModel.FirstName;
            artist.LastName    = artistModel.LastName;
            artist.DateOfBirth = artistModel.DateOfBirth;
            artist.Country     = artistModel.Country;

            return(artist);
        }
Example #2
0
        internal static Artist ToArtist(ArtistModel artistModel, Artist artist = null)
        {
            if (artist == null)
            {
                artist = new Artist();
            }

            artist.FirstName = artistModel.FirstName;
            artist.LastName = artistModel.LastName;
            artist.DateOfBirth = artistModel.DateOfBirth;
            artist.Country = artistModel.Country;

            return artist;
        }