Exemple #1
0
        public ActionResult FeatureList(int id)
        {
            RoleFeatureViewModel viewModel = new RoleFeatureViewModel()
            {
                Roles         = roleSrv.GetAll().ToList(),
                RoleFeatures  = featSrv.GetRoleFeat(id).ToList(),
                Features      = featSrv.GetRestFeat(id).ToList(),
                CurrentRoleId = id
            };

            return(View("EditRoleFeature", viewModel));
        }