public ActionResult Index() { var enumService = new EnumService(); var model = new HanoiViewModel(); model.HanoiAlgorithms = enumService.GetHanoiAlgorithmTypes(); model.SelectedPosition = model.HanoiAlgorithms.First().Text; return(View(model)); }
public ActionResult Index() { var enumService = new EnumService(); var model = new HanoiViewModel(); model.HanoiAlgorithms = enumService.GetHanoiAlgorithmTypes(); model.SelectedPosition = model.HanoiAlgorithms.First().Text; return(View(model)); }