Exemplo n.º 1
0
        public HostsCollection Hosts([FromUri] string name = null)
        {
            IStateQuery syslogState = base.GetSyslogState();
            List <Host> hosts       = syslogState.GetHosts();

            return(new HostsCollection()
            {
                Hosts = hosts
            });
        }
        public HtmlActionResult <HostsCollection> HostView()
        {
            IStateQuery     syslogState = base.GetSyslogState();
            List <Host>     hosts       = syslogState.GetHosts();
            HostsCollection coll        = new HostsCollection()
            {
                Hosts = hosts
            };

            return(new HtmlActionResult <HostsCollection>(Path.Combine(base.GetViewDirectory(), "Hosts.cshtml"), coll));
        }