public ActionResult Index() { var hosts = _hostService.GetHosts(); return(View(new IndexViewData { Hosts = hosts.Select(h => new HostDto { Id = h.Id, Name = h.Name }) })); }
public IHttpActionResult GetHosts() { return(Ok(hostService.GetHosts())); }
public ActionResult Index() { var hosts = _hostService.GetHosts(); return(View(new IndexViewData { Hosts = hosts.Select(h => new HostDto { Id = h.Id, Name = h.Name }) })); }
public IHttpActionResult GetHosts() { return(Ok(hostService.GetHosts())); }