public JsonpResult GetLookUpItems(string appid, string lookupid) { string clientid = Request.Params["clientkey"]; var a = new Tz.App.AppManager(clientid, appid); a.LoadLookUp(); return(new JsonpResult(a.GetLookUp(lookupid))); }
public JsonpResult CreateLookUpItem(string appid, string lookupid, string label, string shortname, string value, string description) { string clientid = Request.Params["clientkey"]; var a = new Tz.App.AppManager(clientid, appid); a.LoadLookUp(); var lk = a.GetLookUp(lookupid); return(new JsonpResult(lk.SaveLookupItem(label, shortname, description, "", value))); }