public async Task <IActionResult> Delete([FromQuery(Name = "catalogId")] int[] catalogIds) { try { await _catalogService.DeleteCatalogsAsync(catalogIds); return(Ok()); } catch (NotFoundException ex1) { return(NotFound(ex1.Message)); } catch (Exception ex) { return(BadRequest(ex.ToString())); } }