title: How to display one aspect of a C# Model List in Javascript?
body: <p>Ok, so I currently have a List that I can store names for a card game.  I can currently use this list to create a javascript array.  Ideally, I want to store the card's name and its value.  I created:</p>
  
  <pre><code>    public class CardValue
  {
      string name {get;set;}
      int value {get;set;}
      public CardValue(string Name, int Value)
      {
          this.name = Name;
          this.value = value;
      }
  }
  </code></pre>
  
  <p>But I am not sure how to sometimes just access the list of names, and other times the name and value.  I know a fair amount of c#, but am fairly new to both javascript and MVC.  Any help would be greatly appreciated.  </p>