public void Update() { var token = GetToken(); if (string.IsNullOrWhiteSpace(token)) { throw new Exception($@"{nameof(token) } is null"); } var customerClubContactObject = new CustomerClubContactObject() { Prefix = "آقای", FirstName = "یونس ", LastName = "بقائی مقدم", Mobile = "09120000001", BirthDay = null, CategoryId = 44 }; var customerClubContactResponse = new CustomerClubContact().Update(token, customerClubContactObject); if (customerClubContactResponse == null) { throw new Exception($@"{nameof(customerClubContactResponse) } is null"); } if (customerClubContactResponse.IsSuccessful) { } else { } }
public void GetContacts() { var token = GetToken(); if (string.IsNullOrWhiteSpace(token)) { throw new Exception($@"{nameof(token) } is null"); } var customerClubContactResponse = new CustomerClubContact().GetContacts(token, 1); if (customerClubContactResponse == null) { throw new Exception($@"{nameof(customerClubContactResponse) } is null"); } if (customerClubContactResponse.IsSuccessful) { } else { } }