Solvberget.Domain.DTO.Book.GetCompressedString C# (CSharp) Method

GetCompressedString() protected method

protected GetCompressedString ( ) : string
return string
        protected override string GetCompressedString()
        {
            var returnValue = Author.Name;

            if (string.IsNullOrEmpty(returnValue))
            {
                return base.GetCompressedString();
            }

            if (PublishedYear != 0)
            {
                returnValue += " (" + PublishedYear + ")";
            }

            return returnValue;
        }