public JsonpResult SaveComponent(string appid, string compName, string title) { string clientid = Request.Params["clientkey"]; var a = new Tz.App.AppManager(clientid, appid); var comp = a.NewComponent(ComponentType.core); comp.ComponentName = compName; comp.Title = title; return(new JsonpResult(a.SaveComponent(comp))); }