Beispiel #1
0
        public ActionResult EditFeatures(IndexFeaturesViewModel model)
        {
            var feature = new Feature();

            feature.Name = model.NewFeatureName;

            featureRepo.SaveFeature(feature);
            return(RedirectToRoute(new { controller = "Admin", action = "EditFeatures" }));
        }
Beispiel #2
0
        public ActionResult EditFeatures()
        {
            var model = new IndexFeaturesViewModel
            {
                Features = featureRepo.Features.ToList()
            };

            return(View(model));
        }