Example #1
0
        public IActionResult Index()
        {
            var countHospital = _hospitalService.List(_prefixHospital).ToList();
            var countNurse    = _nurseService.List(_prefixNurse).ToList();

            ViewBag.Hospitais = countHospital.Count();
            ViewBag.Nurses    = countNurse.Count();
            return(View());
        }
Example #2
0
        public IActionResult Index()
        {
            var result = _nurseService.List(_prefix).ToList();

            return(View(result));
        }