예제 #1
0
        public ActionResult Detail(Guid id)
        {
            var site         = _webSiteRepository.RetrieveWebSite(id);
            var bindings     = _webSiteRepository.RetrieveWebSiteBindings(id).OrderBy(b => b.HostName).ThenBy(b => b.Port).ToList();
            var syncStatuses = _syncStatusRepository.RetrieveSyncStatus(site.Name);

            var model = new WebSiteDetailViewModel {
                Site = site, Bindings = bindings, SyncStatuses = syncStatuses
            };

            return(View(model));
        }
        public ActionResult Detail(Guid id)
        {
            var site = _webSiteRepository.RetrieveWebSite(id);
            var bindings = _webSiteRepository.RetrieveWebSiteBindings(id).OrderBy(b => b.HostName).ThenBy(b => b.Port).ToList();
            var syncStatuses = _syncStatusRepository.RetrieveSyncStatus(site.Name);

            var model = new WebSiteDetailViewModel {Site = site, Bindings = bindings, SyncStatuses = syncStatuses};
            return View(model);
        }