public ActionResult Selector() { var repo = new ViewModelStore(); var model = repo.GetConfigurations(); return(View(model)); }
public ActionResult Create(CreateConfigurationViewModel model) { var client = new RavenClient(); client.Store(new Configuration { Id = model.Id }); ViewBag.SuccessMessage = "Create Configuration Successful"; var repo = new ViewModelStore(); var viewModel = repo.GetConfigurations(); return(View("Index", viewModel)); }