public async Task <IActionResult> Create(SubCategoryCreateDto subCategoryDto)
        {
            if (await _subCategoryService.CheckExists(subCategoryDto.ID))
            {
                return(BadRequest("SubCategory ID already exists!"));
            }
            //var username = User.FindFirst(ClaimTypes.Name).Value;
            //subCategoryIngredientDto.Updated_By = username;
            if (await _subCategoryService.Add(subCategoryDto))
            {
                return(NoContent());
            }

            throw new Exception("Creating the subCategory failed on save");
        }