public async Task <IActionResult> DeleteAll([FromBody] object[] selectedItems)
        {
            if (selectedItems == null)
            {
                return(NotFound());
            }

            try
            {
                var result = await _categoryServices.DeleteRangeAsync(selectedItems);

                if (!result)
                {
                    return(BadRequest());
                }
                else
                {
                    return(Json(result));
                }
            }
            catch (NullReferenceException)
            {
                return(NotFound());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }