public static string DeleteKey(HttpContext context) { var serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); ACTFDALKeys aCTFDALKeys = new ACTFDALKeys(); ACTFKeyss data = new ACTFKeyss(); data.id = new Guid(context.Request.QueryString["id"]); aCTFDALKeys.ACTFKeysDelete(data); return(serializer.Serialize("ok,ok")); }
public static string SaveKey(HttpContext context) { var serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); ACTFDALKeys aCTFDALKeys = new ACTFDALKeys(); ACTFKeyss data = new ACTFKeyss(); data.id = Guid.NewGuid(); data.KeyApi = context.Request.QueryString["KeyApi"]; data.CreationDate = DateTime.Now; aCTFDALKeys.ACTFKeysSave(data); return(serializer.Serialize("ok,ok")); }