ATUL_v1.AtulBusinessLogic.GetProviders C# (CSharp) Method

GetProviders() public method

Gets the providers.
public GetProviders ( ) : string
return string
        public string GetProviders()
        {
            DataSet dsProviders = new DataSet("providers");
            DataTable returnTable = new DataTable();
            Atul_v1Data adb = new Atul_v1Data();
            returnTable = adb.GetProviders();
            dsProviders.Tables.Add(returnTable);
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(dsProviders.GetXml());
            // Convert XML to a JSON string
            string JSON = JsonMethods.XmlToJSON(doc);
            return JSON;
        }

Usage Example

Beispiel #1
0
 public string GetProviders()
 {
     string d = string.Empty;
     AtulBusinessLogic adb = new AtulBusinessLogic();
     d = adb.GetProviders();
     return d;
 }
AtulBusinessLogic