Exemple #1
0
        public ActionResult Create(string id, ServiceHostSettings model)
        {
            var configSet = reader.GetConfigSet(id);

            if (!configSet.UserHasAccessTo())
            {
                throw new UnauthorizedAccessException("Access denied to configset");
            }
            ViewBag.Id = configSet.Id;
            var serviceHost = reader.CreateServiceHost(configSet, model.Name);

            return(RedirectToAction("Details", new { id = serviceHost.Id }));
        }