Ejemplo n.º 1
0
        public ViewResult List()
        {
            var entity        = SessionHelper.CurrentEntity;
            var organisations = organisationRepository
                                .Where(o => o.OwnerID == entity.EntityID)
                                .Include(o => o.Entity)
                                .ToList();

            var vm = new OrganisationListViewModel(organisations);

            return(View(vm));
        }
        public async Task <IActionResult> Index()
        {
            if (frontendUrlService.ShouldRedirectOrganisationShow())
            {
                return(frontendUrlService.RedirectToFrontend("/organisations"));
            }

            var orgs = await _manageApi.GetProviderSummaries();

            var model = new OrganisationListViewModel
            {
                ProviderSummaries = orgs
            };

            return(View(model));
        }