public ActionResult Create(string id, string command)
        {
            var service = reader.GetService(command);

            ViewBag.Trail = service.GetTrail();
            if (!service.UserHasAccessTo())
            {
                throw new UnauthorizedAccessException("Access denied to configset");
            }
            ViewBag.Name          = service.ConfigSet.Name;
            ViewBag.System        = service.ConfigSet.System;
            ViewBag.ServiceId     = service.Id;
            ViewBag.AddedBindings = (from i in service.Endpoints select i.Name).ToList();
            return(View((object)null));
        }
        public ActionResult Details(string id, string item)
        {
            var service = reader.GetService(item);

            ViewBag.Trail = service.GetTrail();
            if (service.ServiceHost.IsInstance() && service.ServiceHostId.IsNullOrEmpty())
            {
                service.ServiceHostId = service.ServiceHost.Id;
            }
            ViewBag.ServiceHosts = service.ConfigSet.ServiceHosts;
            if (!service.UserHasAccessTo())
            {
                throw new UnauthorizedAccessException("Access denied to configset");
            }
            ViewBag.Name      = service.ConfigSet.Name;
            ViewBag.System    = service.ConfigSet.System;
            ViewBag.ServiceId = service.Id;
            return(View(service));
        }