예제 #1
0
        public ActionResult Index()
        {
            GMRService<Group> servie = new GMRService<Group>();
            PermissionService pservice = new PermissionService();
            IndexPermissionModel model = new IndexPermissionModel()
            {
                Groups = servie.GetPaged(p => p.GroupID > 0, new Common.EF.IOrderByClause<Group>[] { new OrderByClause<Group, string>(p => p.GroupName, SortDirection.Ascending) }, 1, 100),
                Permissions = pservice.GetPaged(p => p.PermissionID > 0, new Common.EF.IOrderByClause<Permission>[] { new OrderByClause<Permission, DateTime>(p => p.UpdatedDate.Value, SortDirection.Decending) }, 1, 100)
            };

            return View(model);
        }