示例#1
0
 public void getDatabases()
 {
     System.Diagnostics.Debug.WriteLine("Collecting data...");
     SQLGetter.GetSCSM();
     SQLGetter.GetSCCM();
     SQLGetter.GetEPO();
 }
 [HttpPost] //Dashboard data request
 public string FormTwo(Models.FormData formData)
 {
     if (formData.TextBoxStringData == "dashboards")
     {
         System.Diagnostics.Debug.WriteLine("rendering dashboard");
         return(SQLGetter.GetDashData());
     }
     if (formData.TextBoxStringData == "spreadsheets")
     {
         System.Diagnostics.Debug.WriteLine("rendering collections");
         return(SQLGetter.GetCollectionData());
     }
     if (formData.TextBoxStringData == "deployments")
     {
         System.Diagnostics.Debug.WriteLine("rendering deployments");
         return(SQLGetter.GetDeploymentData());
     }
     if (formData.TextBoxStringData == "reloadData")
     {
         SQLGetter.GetSCCM();
         SQLGetter.GetEPO();
         SQLGetter.GetSCSM();
         return("success");
     }
     return("");
 }