public object Any (BuildBots request) { List<DBHost> hosts = null; using (DB db = new DB ()) hosts = db.GetHosts (); return new BuildBotsResponse { BuildBots = hosts.Select (h => new BuildBot { ID = h.id, Name = h.host, Arch = h.architecture, Description = h.description }).ToList () }; }
public object Any(BuildBots request) { List <DBHost> hosts = null; using (DB db = new DB()) hosts = db.GetHosts(); return(new BuildBotsResponse { BuildBots = hosts.Select(h => new BuildBot { ID = h.id, Name = h.host, Arch = h.architecture, Description = h.description }).ToList() }); }