private void CustomerDelete(HttpContext context) { string id = context.Request.QueryString["id"]; ClassLibrary.BLL.Customers bll = new ClassLibrary.BLL.Customers(); if (bll.Delete(int.Parse(id))) { Print(context, "success"); } else { Print(context, "errors"); } }
private void UpdateQQorder(HttpContext context) { string id = context.Request.QueryString["id"]; string qqOrder = context.Request.QueryString["qqOrder"]; ClassLibrary.BLL.Customers cBLL = new ClassLibrary.BLL.Customers(); if (cBLL.UpdateOrder(int.Parse(id), int.Parse(qqOrder)) > 0) { Print(context, "success"); } else { Print(context, "errors"); } }
private void DisplayCustomer(HttpContext context) { string id = context.Request.QueryString["id"]; bool inuse = !Convert.ToBoolean(context.Request.QueryString["inuse"]); ClassLibrary.BLL.Customers cBLL = new ClassLibrary.BLL.Customers(); if (cBLL.UpdateInuse(int.Parse(id), inuse) > 0) { Print(context, "success"); } else { Print(context, "errors"); } }