Esempio n. 1
0
        public ActionResult Index(RowList value)
        {
            string request;

            Request.InputStream.Seek(0, SeekOrigin.Begin);
            using (var reader = new StreamReader(Request.InputStream))
            {
                request = reader.ReadToEnd();
            }

            var serializer = JsonSerializer.Create(MvcApplication.GetJsonSerializationSettings());

            serializer.TypeNameHandling = TypeNameHandling.All;

            var xnodeRequest = serializer.Deserialize <RowList>(new JsonTextReader(new StringReader(request)));

            return(View());
        }