public ActionResult Index() { IList <Model.User> listUser = null; listUser = bll.GetUser(); BLL.Role roleBll = new BLL.Role(); ViewBag.Role = roleBll.GetRole(); return(View(listUser)); }
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); }