public IActionResult CreateService(long?id) { ViewBag.DataBaseList = _monitor.DatabaseSystemList(id ?? -1); ViewBag.SystemId = id; var service = new CreateServiceViewModel(); if (id != null) { service.DatabaseSystemId = id.Value; } service.Active = true; return(View(service)); }