public IActionResult CreateSystem() { ViewBag.VendorList = from v in _monitor.VendorSelectList(-1) select new { VendorId = v.Id, VendorName = v.Name }; ViewBag.EnvironmentList = _monitor.EnvironmentSelectList(-1); var system = new CreateSystemViewModel { Active = true }; return(View(system)); }