public async Task <IActionResult> Create(LocationCreateDto categoryDto)
        {
            if (await _categoryService.CheckExists(categoryDto.ID))
            {
                return(BadRequest("Location ID already exists!"));
            }
            //var username = User.FindFirst(ClaimTypes.Name).Value;
            //categoryIngredientDto.Updated_By = username;
            if (await _categoryService.Add(categoryDto))
            {
                return(NoContent());
            }

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