public bool CreateWebOrderAccount( UInt32 inCovers, string inName, string inMemberNumber, DTO_WebOrderPayments inPayments, DTO_WebOrderComments inComments, DTO_WebOrderItems inItems, ref DTO_WebOrderAccount outOrderAccount) { errorMsg_ = ""; errorCode_ = ResponseCode.Successful; inPayments.PropertyChanged += propertyChangedEventHandler; inComments.PropertyChanged += propertyChangedEventHandler; inItems.PropertyChanged += propertyChangedEventHandler; DTO_WebOrderResponse response = wcfClient_.CreateWebOrderAccount( 1, // Covers "Jorge", // Name "001-001", // Member Number inPayments, // Payments inComments, // Comments inItems, // Items ref outOrderAccount); if (!response.Succesful) { errorMsg_ = response.Message; errorCode_ = response.ResponseCode; } return(response.Succesful); }
/// <summary> /// /// </summary> /// <param name="inItemList"></param> /// <param name="outOrderItems"></param> public bool CreateWebOrderItems( DTO_WebOrderItem[] inItemList, ref DTO_WebOrderItems outOrderItems) { errorMsg_ = ""; errorCode_ = ResponseCode.Successful; DTO_WebOrderResponse response = wcfClient_.CreateWebOrderItems(inItemList, ref outOrderItems); if (!response.Succesful) { errorMsg_ = response.Message; errorCode_ = response.ResponseCode; } return(response.Succesful); }