public string DeleteRole(int id, bool isDel) { Material_Role role = _roleBll.Find(id); role.Del_Flag = isDel; return(_roleBll.UpdateEntities(new List <Material_Role>() { role }) ? "OK" : "Error"); }