批量删除跟单删

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

posted @ 2018-08-23 09:06  相安  阅读(204)  评论(0编辑  收藏  举报