public string BatchDel(webReq req) { ResultForWeb r = new ResultForWeb { HttpCode = 200, Message = "", data = "{}" }; var ids = req.ids; SqlHelperHere.DeleteByIds("orderinfo", ids); return(JsonConvert.SerializeObject(r)); }
public void BatchDel(webReq req) { //var ids = req.ids; var ids = Request.Form.GetValues("ids[]"); var temps = Array.ConvertAll <string, int>(ids, s => int.Parse(s)); SqlHelperHere.DeleteByIds("orderinfo", temps); //string str = "update set "; ////string[] ids = Request.Form.GetValues("ids[]"); //for (int i = 0; i < ids.Length; i++) //{ // DoDelete(ids[i]); //} }