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