public IActionResult Index() { OrganisationsBagsViewModel model = null; try { model = new OrganisationsBagsViewModel() { Institutions = _donationService.GetInstitutionList(), InstitutionCount = _donationService.GetInstitutionCount(), BagCount = _donationService.GetTotalNumberOfBags() }; } catch (Exception ex) { _logger.LogError(ex, "Error preparing Index view."); } return(View(model)); }