首页 > 其他 > 详细

批量删除跟单删

时间:2018-08-23 10:04:12      阅读:135      评论:0      收藏:0      [点我收藏+]

/// <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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!