public OrderDtoResponse Add(OrderDtoResponse orderDTO) { var order = _mapper.Map <Order>(orderDTO); _serviceOrder.Add(order); var orderResponse = _mapper.Map <OrderDtoResponse>(order); return(orderResponse); }
public void Delete(OrderDtoResponse orderDto) { var order = _mapper.Map <Order>(orderDto); _serviceOrder.Delete(order); }