private void DelContent(HttpContext context) { string ID = context.Request.Params["ID"]; if (!string.IsNullOrEmpty(ID)) { GetDataContext1.Delete <Data.POCOS.Content>(int.Parse(ID)); } context.Response.WriteJsonSuccess(); }
private void DeletePage(HttpContext context) { GetDataContext1.Delete <Data.POCOS.Page>(int.Parse(p["id"])); }