public ActionResult Enable(CultureIndexModel model, int[] ids) { if (ids != null && ids.Length > 0) { foreach (var adminUser in MaintDbContext.Cultures.Where(x => !x.IsEnabled && ids.Contains(x.CultureId)).ToList()) { adminUser.IsEnabled = true; } MaintDbContext.SaveChanges(); } return Template(model.CreateTemplate(ControllerContext)); }
public ActionResult Index(CultureIndexModel model) { return Template(model.CreateTemplate(ControllerContext)); }