public async Task <GetUnitOfMeasureDto> CreateUnitOfMeasureAsync(CreateUnitOfMeasureDto unitOfMeasureDto)
        {
            await CheckUnitOfMeasureAsync(0, unitOfMeasureDto.Code);

            var unitOfMeasure = _mapper.Map <UnitOfMeasure>(unitOfMeasureDto);

            unitOfMeasure = await _unitOfMeasure.AddUnitOfMeasureAsync(unitOfMeasure);

            return(_mapper.Map <GetUnitOfMeasureDto>(unitOfMeasure));
        }