Beispiel #1
0
        public async Task <ProductDto> CreateAsync(CreateProductDto input)
        {
            var product = await _productManager.CreateAsync(
                input.Code,
                input.Name,
                input.Price,
                input.StockCount,
                input.ImageName
                );

            return(ObjectMapper.Map <Product, ProductDto>(product));
        }
Beispiel #2
0
 public Task <ProductDto> CreateAsync(CreateProductDto input)
 {
     return(_productAppService.CreateAsync(input));
 }