Updating the Data Model
We need an identifier to uniquely identify the comic book for our users.
We assign a new function named DisplayText().
public string DisplayText
{
get
{
return SeriesTitle + " #" + IssueNumber;
}
}
We also need a function to call books' cover image. Let's do some manipulation according to our image's name.
public string CoverImageFileName
{
get
{
return SeriesTitle.Replace(" ", "-").ToLower() + "-" + IssueNumber + ".jpg";
}
}