public HttpResponseMessage GetServersInDrillDown() { HttpResponseMessage response = null; try { response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_001", "Success", Level3Repository.GetServersInDrillDown())); } catch (Exception exception) { Debug.WriteLine(exception.Message); Debug.WriteLine(exception.GetBaseException()); response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_101", "Application Error", exception.Message)); } return(response); }
public HttpResponseMessage GetServerUpgradationList(string region, int count, string cluster, string fp_version) { HttpResponseMessage response = null; try//exception handling { response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_001", "success", Level3Repository.GetServerUpgradationList(region, count, cluster, fp_version))); } catch (Exception exception) { Debug.WriteLine(exception.Message); Debug.WriteLine(exception.GetBaseException()); response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_101", "Application Error", exception.Message)); } return(response); }
public HttpResponseMessage GetAlertsDetailsByContainer(string container) { HttpResponseMessage response = null; try { response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_001", "Success", Level3Repository.GetAlertsDetailsByContainer(container))); } catch (Exception exception) { Debug.WriteLine(exception.Message); Debug.WriteLine(exception.GetBaseException()); response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_101", "Application Error", exception.Message)); } return(response); }
public HttpResponseMessage GetAlertsDetails(int severity) { HttpResponseMessage response = null; try//exception handling { response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_001", "success", Level3Repository.GetAlertsDetails(severity))); } catch (Exception exception) { Debug.WriteLine(exception.Message); Debug.WriteLine(exception.GetBaseException()); response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_101", "Application Error", exception.Message)); } return(response); }
public HttpResponseMessage GetMapDrillDownByCountry(string code) { HttpResponseMessage response = null; try//exception handling { response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_001", "success", Level3Repository.GetMapDrillDownByCountry(code))); } catch (Exception exception) { Debug.WriteLine(exception.Message); Debug.WriteLine(exception.GetBaseException()); response = Request.CreateResponse(HttpStatusCode.OK, new CLResponseMessage("CCA_101", "Application Error", exception.Message)); } return(response); }