public ActionResult Save(ManifestJsonViewModel model) { _manifestJsonService.Save(model.SiteId, model.Data); model.HasSaved = true; model.SiteList = GetHostsSelectListItems(); return(View("Index", model)); }
public ActionResult Index() { var hostList = GetHostsSelectListItems(); var model = new ManifestJsonViewModel() { SiteList = hostList }; if (hostList.Any()) { model.Data = _manifestJsonService.Get(hostList.First().Value); } return(View(model)); }