public ActionResult Index() { var presetModel = new PresetOverview { Presets = ledController.GetAllPresets() }; return(View(presetModel)); }
// GET: Preset/Create public ActionResult Create() { var presets = ledController.GetAllPresets(); var model = new PresetActivationModel() { AllPresets = presets.ToArray(), Active = true }; return(View(model)); }