Пример #1
0
 public ActionResult GetUsageData(string subscriptionId, string organizationId, string startDate, string endDate)
 {
     try
     {
         // get subscription detail from the table storage
         var jsonString = AzureResourceManagerUtil.GetResourceUsageData(subscriptionId, organizationId, startDate, endDate);
         return(Content(jsonString, "application/json"));
     }
     catch (System.Exception exp)
     {
         Logger.Log("RateCard-Web-API", "Error", exp.Message, exp.ToString());
         return(new HttpStatusCodeResult(500));
     }
 }