Пример #1
0
 public int CreateProduct([FromBody] ProductDTO product)
 {
     return(_productManagementService.CreateProduct(product));
 }
Пример #2
0
        public async Task <ResponseGetProductsViewModelItem> CreateProduct([FromBody] RequestCreateProductViewModel request)
        {
            ResponseGetProductsViewModelItem response = await _productManagementService.CreateProduct(request);

            return(response);
        }