Hi saimm,
1. Error: You don't assign the result of
GetCustomer
to your
c2
variable. Btw. you don't need to assign it twice. So do it like this:
Customer c2 = GetCustomer("blablabla");
textbox1.Text = c2.Name;
2. Error: You do nothing with the string parameter
pCusCode
in the
GetCustomer
method. So there is no effect in calling GetCustomer with different parameters....