예제 #1
0
        public ActionResult Selector()
        {
            var repo  = new ViewModelStore();
            var model = repo.GetConfigurations();

            return(View(model));
        }
예제 #2
0
        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));
        }