public OrderDTO Update(OrderDTO orderDTO) { //get ef order by id, put in dto properties //update it and convert the updated ef order back to dto SOA_Order soa_Order = null; return Convert(soa_Order); }
private SOA_Order Convert(OrderDTO soa_Order) { SOA_Order order = new SOA_Order(); order.OrderName = soa_Order.Name; //... return order; }
private OrderDTO Convert(SOA_Order soa_Order) { OrderDTO order = new OrderDTO (); order.Name = soa_Order.OrderName; //... return order; }