protected void Button1_Click(object sender, EventArgs e) { CompanyService.CompanyPublicServiceClient client = new CompanyService.CompanyPublicServiceClient("BasicHttpBinding_ICompanyPublicService"); Label1.Text = client.GetPublicInformation(); }
public ContentResult GetPublicInformation(string submitButton) { CompanyService.CompanyPublicServiceClient client = new CompanyService.CompanyPublicServiceClient("BasicHttpBinding_ICompanyPublicService"); return(Content(client.GetPublicInformation())); }