public async Task <List <ResponseCustomerRelation> > CustomerRelationService(RequestCustomerRelation request) { CustomerRelationOperation op = new CustomerRelationOperation(request); op.Execute(); return(op.response); }
public void CustomerRelation() { RequestCustomerRelation request = new RequestCustomerRelation() { CUSTOMER_NAME = "pars", CUSTOMER_SURNAME = "basmaz", CUSTOMER_NUMBER = 1, EMAIL = "*****@*****.**", INSERT_USER = "******", IDENTIFICATION_ID = 19034546316, PHONE_NUMBER = "5357977314", UPDATE_USER = "******", GENDER = Enum.GetName(typeof(Enums.GENDER), 1), PASSWORD = "******", Header = new Header { Device = (int)DeviceEnum.Device.WEB, OperationTypes = (int)OperationType.OperationTypes.ADD, RequestId = Guid.NewGuid().ToString(), ApiKey = "U6l1hKzpZDrgfTaKxpQm3A/6raDiroAI7ueTgMNwhQs=", TokenId = "IM1guWBb1Ui/6+WA2uSQSqhTASnBL2/h" } }; CustomerRelationOperation op = new CustomerRelationOperation(request); op.Execute(); Assert.IsTrue(op.responsedata.header.IsSuccess); }
public bool CustomerRelationOperation(RequestCustomerRelation request, out List <ResponseCustomerRelation> response) { CustomerRelationOperation op = new CustomerRelationOperation(request); op.Execute(); response = op.response; if (op.response == null && op.response.Count < 1) { return(false); } return(true); }