예제 #1
0
        public virtual ActionResult Index()
        {
            var model = new GroupIndexModel
            {
                Groups = AdminInitialise.EntitiesTypes
                    .GroupBy(x => x.Verbose.Group)
                    .Select(x => new GroupModel
                    {
                        Name = x.Key,
                        Entities = x.ToList()
                    }).ToList()
            };

            return View(model);
        }
예제 #2
0
        public virtual ActionResult Index()
        {
            var model = new GroupIndexModel
            {
                Groups = _admin.Entities
                    .Except(new[] { _admin.ChangeEntity })
                    .GroupBy(x => x.Verbose.Group)
                    .Select(x => new GroupModel
                    {
                        Name = x.Key,
                        Entities = x.ToList()
                    }).ToList(),
                ChangeEnabled = _admin.ChangeEntity != null,
                Changes = _recordsService.GetLastChanges(10)
            };

            return View(model);
        }