Ejemplo n.º 1
0
 public ActionResult Update(int id, [FromBody] ProductCartCreationDto productCartCreationDto)
 {
     _productCartAppService.Update(id, productCartCreationDto);
     return(NoContent());
 }
Ejemplo n.º 2
0
        public void Update(int id, ProductCartCreationDto productCartCreationDto)
        {
            var productCartEntity = _mapper.Map <ProductCart>(productCartCreationDto);

            _productCartService.Update(id, productCartEntity);
        }
Ejemplo n.º 3
0
 public ActionResult <ProductCartDto> Create([FromBody] ProductCartCreationDto productCartCreationDto)
 {
     return(_productCartAppService.Create(productCartCreationDto));
 }
Ejemplo n.º 4
0
        public ProductCartDto Create(ProductCartCreationDto productCartCreationDto)
        {
            var productCartEntity = _mapper.Map <ProductCart>(productCartCreationDto);

            return(_mapper.Map <ProductCartDto>(_productCartService.Create(productCartEntity)));
        }