Example #1
0
 public static bool InsertOrder(OrderBase orderBase, OrderDetail detail)
 {
     try
     {
        orderBase =  orderBase.PostAdd();
        detail.OrderID = orderBase.ID;
        detail = detail.PostAdd();
        if (orderBase.ID != null && detail.ID != null)
            return true;
        else
            return false;
     }
     catch (Exception ex)
     {
         LogHelper.Write(CommonLogger.Application, ex);
         return false;
     }
 }