public static Label GetLabelByTitle(String title, String username, String password) { using (LabelClient labelClient = new LabelClient(BlogSection.GetConfigSection().Service.Endpoint.Label)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ return(labelClient.GetLabelByTitle(title)); } }
public static Label GetLabelByTitle(String title, String username, String password) { using (LabelClient labelClient = new LabelClient(MinimaConfiguration.ActiveLabelServiceEndpoint)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ return(labelClient.GetLabelByTitle(title)); } }