private JObject getAgentsAvailabilityStatuses(HttpContext context) { JObject responseJObj = new JObject(); try { Press3.BusinessRulesLayer.Manager managerObj = new Press3.BusinessRulesLayer.Manager(); responseJObj = managerObj.getAgentsAvailabilityStatuses(MyConfig.MyConnectionString, accountId); } catch (Exception ex) { responseJObj.Add(new JProperty("Success", "False")); Logger.Error(ex.ToString()); throw ex; } return(responseJObj); }