public ActionResult EditFeatures(IndexFeaturesViewModel model) { var feature = new Feature(); feature.Name = model.NewFeatureName; featureRepo.SaveFeature(feature); return(RedirectToRoute(new { controller = "Admin", action = "EditFeatures" })); }
public ActionResult EditFeatures() { var model = new IndexFeaturesViewModel { Features = featureRepo.Features.ToList() }; return(View(model)); }