It looks like you're new here. Sign in or register to get started.
cust = service.Read(cust.No); service.Delete(cust.Key);
cust = wService.Read(cust.No); Console.WriteLine(cust.No + " Name:" + cust.Name); Console.ReadLine(); wService.Delete(cust.Key);
public bool DeleteCustomer(string pCustomerNo) { Customer_Service cs = new Customer_Service(); cs.UseDefaultCredentials = true; cs.Url = CustomerServiceReference; cs.PreAuthenticate = true; Customer cust = ws.Read(pCustomerNo); cs.Delete(cust.Key); return true; }
Comments
You need to provide a little more detail on the declaration of your variables...
If I was doing something like this I would expect to see... (albeit you need to implement some "try catch" as well as I have not shown all variable declarations...)