using System.Collections.Generic;
namespace HelloWorldMvcApp
public class HomeController : Controller
public ActionResult Index()
var model = new SampleViewModel();
model.CollegeInformationlist = new List<CollegeInformationDTO>();
model.CollegeInformationlist.Add(new CollegeInformationDTO { State = "a state" });
public JsonResult GetAnswer(string question)
int index = _rnd.Next(_db.Count);
private static Random _rnd = new Random();
private static List<string> _db = new List<string> { "Yes", "No", "Definitely, yes", "I don't know", "Looks like, yes"} ;