public JsonResult SortContent(List<SectionContent> contents)
 {
     var contentService = new SectionContentService();
     contents.Each(m =>
     {
         var g = contentService.Get(m.ID);
         g.Order = m.Order;
         contentService.Update(g);
     });
     return Json(true);
 }
Example #2
0
        public JsonResult SortContent(List <SectionContent> contents)
        {
            var contentService = new SectionContentService();

            contents.Each(m =>
            {
                var g   = contentService.Get(m.ID);
                g.Order = m.Order;
                contentService.Update(g);
            });
            return(Json(true));
        }