public ActionResult privilege(string RoleId) { if (string.IsNullOrEmpty(RoleId)) { return(View("Error")); } var dbres = buss.GetRoleList(RoleId); ViewData["RoleList"] = ApplicationUtilities.SetDDLValueMultiSelectWithGroup(dbres); ViewData["RoleId"] = RoleId; return(View()); }
public ActionResult FunctionPrivilege(string RoleId, string Name) { RoleId = RoleId.DecryptParameter(); string name = Name.DecryptParameter(); if (string.IsNullOrEmpty(RoleId) || string.IsNullOrEmpty(name)) { return(View("Error")); } var dbres = buss.GetFunctionList(RoleId); ViewData["FunctionList"] = ApplicationUtilities.SetDDLValueMultiSelectWithGroup(dbres); ViewData["RoleId"] = RoleId.EncryptParameter(); ViewBag.Name = name; return(View()); }