Ejemplo n.º 1
0
        public IActionResult Index()
        {
            Checks.getDB check = new Checks.getDB();
            //List of all the websites
            List <WebsiteModel> Websites = check.GetObjects <List <WebsiteModel> >("/websites");
            //List of all the Apis
            List <ApiModel>   Apis  = check.GetObjects <List <ApiModel> >("/apis");
            HomeCombinedModel Model = new HomeCombinedModel();

            //Model to return to the view
            Model.apiModel     = Apis;
            Model.websiteModel = Websites;

            return(View(Model));
        }
Ejemplo n.º 2
0
        // GETS //

        // GET: config
        public ActionResult Index()
        {
            ViewData["Message"] = "This is an configuration for the background worker to periodically check the api's and websites.";

            Checks.getDB       check  = new Checks.getDB();
            List <ConfigModel> Config = check.GetObjects <List <ConfigModel> >("/configurations");

            return(View(Config));
        }
Ejemplo n.º 3
0
        // GETS //

        // GET: Api
        public ActionResult Index()
        {
            ViewData["Message"] = "This is an overview of all the API's that are getting checked.";

            Checks.getDB    check = new Checks.getDB();
            List <ApiModel> Apis  = check.GetObjects <List <ApiModel> >("/apis");

            return(View(Apis));
        }
Ejemplo n.º 4
0
        public IActionResult Index()
        {
            ViewData["Message"] = "This is an overview of all the websites that are getting checked.";

            Checks.getDB        check    = new Checks.getDB();
            List <WebsiteModel> Websites = check.GetObjects <List <WebsiteModel> >("/websites");

            return(View(Websites));
        }