using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
namespace HelloWorldMvcApp
public class SampleViewModel
public List<Something>Things{get;set;}
public Something SomethingSelected{get;set;}
Things=new List<Something>()
new Something(){Id=1, Name="A"},
new Something(){Id=2, Name="B"},
new Something(){Id=3, Name="C"}
public string Name{get;set;}