Exemplo n.º 1
0
        public ActionResult Upload(HttpPostedFileBase file)
        {
            var data = Deserializer <ConfigurationSets> .Deserialize(file.InputStream, "http://pragma.no/Pragma.Core.Services.ConfigurationReader.ConfigurationSets");

            foreach (var configSet in data.ConfigSets)
            {
                reader.CreateFromTextConfigStoreFile(configSet);
            }
            return(RedirectToAction("Index", "Home"));
        }