Exemplo n.º 1
0
        public ActionResult Index(RoleViewModel rViewModel)
        {
            if (TempData["rViewModel"] != null)
            {
                rViewModel = (RoleViewModel)TempData["rViewModel"];
            }

            if (rViewModel.Role.RoleId == 0)
            {
                rViewModel.Role.Modules = _rRepo.GetModuleByRoleId(rViewModel.Role.RoleId);
            }

            return(View("Index", rViewModel));
        }
Exemplo n.º 2
0
 public List <ModuleInfo> GetModuleByRoleId(int role_id)
 {
     return(_roleRepo.GetModuleByRoleId(role_id));
 }