public async Task <int> AddProductAndDetail(ProductInfo productInfo, List <ProductDetailInfo> productDetailInfos)
        {
            var productId = 0;

            using (IUnitOfWork uow = new DapperUnitOfWork(_traingRepositoryContext))
            {
                productId = await Connection.InsertAsync(productInfo) ?? 0;

                foreach (var productDetailInfo in productDetailInfos)
                {
                    productDetailInfo.ProductId = productId;
                    await _dapperRepository.InsertAsync(productDetailInfo);
                }
                uow.SaveChanges();
            }
            return(productId);
        }