예제 #1
0
        public async Task <PortalViewModel> GetIsePortal(Guid id)
        {
            // TODO : Return a proper http response code

            var connection = GetIseConnection();

            if (connection == null)
            {
                return(null);
            }

            var portal = await Portals.Get(connection, id);

            return(portal);
        }
예제 #2
0
        public async Task <List <PortalBriefViewModel> > GetIsePortals()
        {
            // TODO : Return a proper http response code

            var connection = GetIseConnection();

            if (connection == null)
            {
                return(null);
            }

            var portals = await Portals.Get(connection);

            return(portals);
        }