Пример #1
0
        public void CopyProperties(Contracts.Persistence.IAlbum other)
        {
            other.CheckArgument(nameof(other));

            Id       = other.Id;
            ArtistId = other.ArtistId;
            Title    = other.Title;
        }
Пример #2
0
        public void CopyProperties(Contracts.Persistence.IAlbum other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Id       = other.Id;
            ArtistId = other.ArtistId;
            Title    = other.Title;
        }