public JsonNetResult GetSnapshot() { #region Get data from WCF var PlatformManagementServiceClient = new PlatformManagementService.PlatformManagementServiceClient(); var infrastructureSnapshot = new BillingSnapshot(); try { PlatformManagementServiceClient.Open(); infrastructureSnapshot = PlatformManagementServiceClient.GetBillingShapshot(Common.SharedClientKey); //Close the connection WCFManager.CloseConnection(PlatformManagementServiceClient); } catch (Exception e) { #region Manage Exception string exceptionMessage = e.Message.ToString(); var currentMethod = System.Reflection.MethodBase.GetCurrentMethod(); string currentMethodString = currentMethod.DeclaringType.FullName + "." + currentMethod.Name; // Abort the connection & manage the exception WCFManager.CloseConnection(PlatformManagementServiceClient, exceptionMessage, currentMethodString); #endregion } #endregion JsonNetResult jsonNetResult = new JsonNetResult(); jsonNetResult.Formatting = Newtonsoft.Json.Formatting.Indented; jsonNetResult.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Local; //<-- Convert UTC times to LocalTime jsonNetResult.Data = infrastructureSnapshot; return(jsonNetResult); }