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)); }
// 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)); }
// 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)); }
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)); }