Пример #1
0
        public JsonResult Admin_editor()
        {
            var    sr               = new StreamReader(Request.InputStream);
            var    stream           = sr.ReadToEnd();
            string jsonText         = stream;
            JavaScriptSerializer js = new JavaScriptSerializer();
            Admin admin             = js.Deserialize <Admin>(stream);

            admin.pass = dbDrive.FindAdmin(admin.id).pass;
            return(Json(dbDrive.Udpdate(admin)));
        }