public IActionResult Entry() { // view bag values for the front end ViewBag.CompanyCount = _company.AllCompanies().Count(); ViewBag.DepartmentCount = _department.AllDepartments().Count(); ViewBag.RiskTypeCount = _riskType.AllRiskTypes().Count(); ViewBag.RegisteredRisks = _registerRisk.AllRiskRegisters().Count(); return(View()); }
//[AllowAnonymous] public IActionResult TestDB() { var testresult = _registerRisk.AllRiskRegisters(); return(View(testresult)); }