예제 #1
0
        public async Task <ProductDTO> InsertAsync(ProductDTO product)
        {
            var result = await _productService.InsertAsync(AutoMapper.Mapper.Map <Product>(product));

            return(AutoMapper.Mapper.Map <ProductDTO>(result));
        }