public IActionResult BatchDeleteUser(int[] ids) { Tsys_User_Da da = new Tsys_User_Da(); if (da.Delete(u => ids.Contains(u.Id)) <= 0) { return(FailMessage("批量删除用户失败!")); } else { return(SuccessResult("批量删除用户成功!")); } }
public IActionResult DeleteUser(int id) { Tsys_User_Da da = new Tsys_User_Da(); if (da.Delete(u => u.Id == id) <= 0) { return(FailMessage("删除用户失败!")); } else { return(SuccessResult("删除用户成功!")); } }