Esempio n. 1
0
        public ActionResult Update(string id)
        {
            string str = "";
            var    obj = _RoleService.GetById(id);

            var t = _RoleMenuService.GetAllByRoleId(id).ToList();

            if (t != null && t.Any())
            {
                foreach (var item in t)
                {
                    str += item.MenuId + ",";
                }
            }

            ViewBag.Selected = str;
            ViewBag.urlValue = url;

            return(View(obj));
        }