public async Task <IActionResult> AddColor(ColorForCreationDto colorForCreationDto)
        {
            if (colorForCreationDto.ColorName == null)
            {
                return(BadRequest("Нет названия цвета"));
            }
            var colorToCreate = _mapper.Map <Color>(colorForCreationDto);

            var colorFromRepo = await _repo.AllItems.FirstOrDefaultAsync(p => p.ColorName == colorToCreate.ColorName);

            if (colorFromRepo != null)
            {
                return(BadRequest("Уже существует"));
            }

            if (await _repo.AddItemAsync(colorToCreate))
            {
                return(Ok(colorToCreate));
            }

            return(BadRequest());
        }