public async Task <ResponseResult <int> > DeleteRange(List <int> ids) { var adminRoles = new List <AdminRole>(); foreach (var it in ids) { adminRoles.Add(new AdminRole { Id = it }); } var serviceResult = await _roleService.DeleteRangeAsync(adminRoles); return(new ResponseResult <int>(true)); }