public IHttpActionResult Get() { try { var links = HelpfulLinks.GetAll(); return(Json(links, CamelCase)); } catch (Exception ex) { return(HandleException(ex)); } }
private HealthCheck CheckSharePoint() { var health = new HealthCheck(); health.description = "SharePoint List Access"; try { var links = HelpfulLinks.GetAll(); health.status = "Success"; } catch (Exception ex) { health.status = "Error"; } return(health); }