Esempio n. 1
0
 public ActionResult Delete(CultureTextIndexModel model, int[] ids)
 {
     if (ids != null && ids.Length > 0)
     {
         foreach (var cultureText in MaintDbContext.CultureTexts.Where(x => ids.Contains(x.CultureTextId)).ToList())
         {
             MaintDbContext.CultureTexts.Remove(cultureText);
         }
         MaintDbContext.SaveChanges();
         _maintDomainService.ClearCultureTextsCache();
     }
     return Template(model.CreateTemplate(ControllerContext));
 }
Esempio n. 2
0
 public ActionResult Index(CultureTextIndexModel model)
 {
     return Template(model.CreateTemplate(ControllerContext));
 }