public IActionResult Index() { var model = new DashboardDto { Habitats = _habitatService.GetHabitats().Count(), Animals = _animalService.GetAnimals().Count(), Employees = _employeeService.GetEmployees().Count() }; return(View(model)); }
public IActionResult Index() { var habitats = _habitatService.GetHabitats(); return(View(habitats)); }