public OrderResponseBE GetOrderById(int orderProductId) { try { OrderResponseBE response = _orderDA.GetOrderById(orderProductId); response.OrderDetails = _orderDA.GetOrderDetails(orderProductId); return(response); } catch (Exception) { throw; } }
public Order GetOrderById(int id) { Order order = new Order(); try { order = orderDataAccess.GetOrderById(id); } catch (Exception ex) { // } return(order); }