/// <summary> /// Updates the date range, datacenter, and pipeline from the querystring, then serializes the information for the /// DataCenter Heat Map. /// </summary> /// <returns>JSON Object that stores the each network, their percentages, their farms, and the farm percentages</returns> public string getNetworkFarm() { rel.ChangeDate(Convert.ToDateTime(Request.QueryString["start"]), Convert.ToDateTime(Request.QueryString["end"])); rel.ChangeDataCenter(Request.QueryString["datacen"]); rel.ChangePipeline(Request.QueryString["pipeline"]); return(JsonConvert.SerializeObject(rel.CalculateDataCenterHeatMap(), Formatting.Indented)); }