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());
        }
Exemple #2
0
        //[AllowAnonymous]
        public IActionResult TestDB()
        {
            var testresult = _registerRisk.AllRiskRegisters();

            return(View(testresult));
        }