C# ASP.NET MVC Basics Modeling and Presenting Data Creating a Data Model

Not sure what I'm doing wrong here.

Does it want "Nintendo" in the code?

VideoGame.cs
namespace Treehouse.Models
{
    public class VideoGame 
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string[] Characters { get; set; }
        public string Publisher { get; set; }

        public string DisplayText 
        {
            get 
            {
                return Title + Publisher(" Super Mario 64 (Nintendo)");
            }
        } 
    }
}

2 Answers

Aaron Price
Aaron Price
5,970 Points

This worked for me

namespace Treehouse.Models
{
    public class VideoGame 
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string[] Characters { get; set; }
        public string Publisher { get; set; }

        public string DisplayText 
        {
            get 
            {
                return Title + Publisher + " Super Mario 64 (Nintendo)";
            }
        } 
    }
}

It's not working for me still.