public async Task <ActionResult <bool> > BulkDelete([FromBody] List <long> Ids) { if (!ModelState.IsValid) { throw new BindException(ModelState); } TicketTypeFilter TicketTypeFilter = new TicketTypeFilter(); TicketTypeFilter = TicketTypeService.ToFilter(TicketTypeFilter); TicketTypeFilter.Id = new IdFilter { In = Ids }; TicketTypeFilter.Selects = TicketTypeSelect.Id; TicketTypeFilter.Skip = 0; TicketTypeFilter.Take = int.MaxValue; List <TicketType> TicketTypes = await TicketTypeService.List(TicketTypeFilter); TicketTypes = await TicketTypeService.BulkDelete(TicketTypes); return(true); }