Exemple #1
0
        public OrderDtoResponse Add(OrderDtoResponse orderDTO)
        {
            var order = _mapper.Map <Order>(orderDTO);

            _serviceOrder.Add(order);
            var orderResponse = _mapper.Map <OrderDtoResponse>(order);

            return(orderResponse);
        }
Exemple #2
0
        public void Delete(OrderDtoResponse orderDto)
        {
            var order = _mapper.Map <Order>(orderDto);

            _serviceOrder.Delete(order);
        }