public HttpStatusCodeResult InsertDeleteTrigger()
        {
            HttpStatusCodeResult output = new HttpStatusCodeResult(System.Net.HttpStatusCode.InternalServerError);

            try
            {
                SNMPDataHub Hub = new SNMPDataHub();
                Hub.SendInsertDelete();
                output = new HttpStatusCodeResult(System.Net.HttpStatusCode.OK);
            }
            catch (Exception e)
            {
                BusinessLayer.ExceptionHandling.ExceptionCore.HandleException(BusinessLayer.ExceptionHandling.ExceptionCategory.Normal, e);
                output = new HttpStatusCodeResult(System.Net.HttpStatusCode.InternalServerError);
            }
            return(output);
        }
        public HttpStatusCodeResult AgentUpdatedTrigger(string param)
        {
            HttpStatusCodeResult output = new HttpStatusCodeResult(System.Net.HttpStatusCode.InternalServerError);

            try
            {
                SNMPDataHub       Hub     = new SNMPDataHub();
                JObject           jobject = JObject.Parse(param);
                Models.AgentModel agent   = new Models.AgentModel(jobject);
                Hub.SendUpdatedAgent(agent);
                output = new HttpStatusCodeResult(System.Net.HttpStatusCode.OK);
            }
            catch (FormatException e)
            {
                BusinessLayer.ExceptionHandling.ExceptionCore.HandleException(BusinessLayer.ExceptionHandling.ExceptionCategory.High, e);
                output = new HttpStatusCodeResult(System.Net.HttpStatusCode.InternalServerError);
            }
            catch (Exception e)
            {
                BusinessLayer.ExceptionHandling.ExceptionCore.HandleException(BusinessLayer.ExceptionHandling.ExceptionCategory.Normal, e);
                output = new HttpStatusCodeResult(System.Net.HttpStatusCode.InternalServerError);
            }
            return(output);
        }