예제 #1
0
        public ActionResult Index()
        {
            IList <Model.User> listUser = null;

            listUser = bll.GetUser();
            BLL.Role roleBll = new BLL.Role();
            ViewBag.Role = roleBll.GetRole();
            return(View(listUser));
        }
예제 #2
0
        public string GetRoleNameByRoleID(string RoleID)
        {
            string Name = "";

            if (RoleID != "")
            {
                BLL.Role   BRole = new BLL.Role();
                Model.Role MRole = new Model.Role();
                MRole = BRole.GetModel(int.Parse(RoleID));
                if (MRole != null)
                {
                    Name = MRole.Name;
                }
            }
            return(Name);
        }