Пример #1
0
 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));
 }
Пример #2
0
 public ActionResult Index(CultureIndexModel model)
 {
     return Template(model.CreateTemplate(ControllerContext));
 }