public async Task <ActionResult <bool> > BulkDelete([FromBody] List <long> Ids) { if (!ModelState.IsValid) { throw new BindException(ModelState); } AppUserFilter AppUserFilter = new AppUserFilter(); AppUserFilter.Id = new IdFilter { In = Ids }; AppUserFilter.Selects = AppUserSelect.Id; AppUserFilter.Skip = 0; AppUserFilter.Take = int.MaxValue; List <AppUser> AppUsers = await AppUserService.List(AppUserFilter); AppUsers = await AppUserService.BulkDelete(AppUsers); if (AppUsers.Any(x => !x.IsValidated)) { return(BadRequest(AppUsers.Where(x => !x.IsValidated))); } return(true); }