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

            return(View(testresult));
        }