public async Task <GoodDto> UpdateAsync(Guid id, CreateGoodDto input)
        {
            var good = await _goodRepository.GetAsync(id);

            //service.Code = input.Code;
            good.SetName(input.Name);
            good.SetType(input.Type);
            good.SetCategory(input.Category);
            good.SetDescription(input.Description);
            good.SetLiveMode(input.LiveMode);
            good.SetMetaData(input.Metadata.ToString());
            good.SetProductImage(input.ProductImage);
            good.SetShippable(input.Shippable);
            good.SetUnitLabel(input.UnitLabel);

            return(ObjectMapper.Map <Good, GoodDto>(good));
        }
        public async Task <GoodDto> CreateAsync(CreateGoodDto input)
        {
            var good = await _goodRepository.InsertAsync(
                new Good(
                    GuidGenerator.Create(),
                    input.Code,
                    input.Name,
                    input.Type,
                    input.Category,
                    input.Description,
                    input.LiveMode,
                    input.Metadata.ToString(),
                    input.Shippable,
                    input.UnitLabel,
                    input.ProductImage

                    )
                );

            return(ObjectMapper.Map <Good, GoodDto>(good));
        }