/// <summary> /// 删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public int DeleteId(int id) { int i = bll.Delete(id); if (i > 0) { Response.Write("<script>alert('删除成功!');location.href='/Index/Index'</script>"); } else { Response.Write("<script>alert('删除失败!');location.href='/Index/Index'</script>"); } return i; } /// <summary> /// 批量删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public int DeleteIds(string id) {
if (bll.DeleteIds(id) > 0) { return 1; } else { return 0; } }
转载于:https://www.cnblogs.com/MenBe/p/9521732.html
相关资源:数据结构—成绩单生成器