Esempio n. 1
0
        public ActionResult AjaxView()
        {
            var role = _dnActiveRoleDa.GetRoleItemById(ArrId.FirstOrDefault());

            ViewData.Model = role;
            return(View());
        }
Esempio n. 2
0
        public ActionResult GetRoleItemById(string key, int id)
        {
            var obj = key != Keyapi ? new ActiveRoleItem() : _dl.GetRoleItemById(id);;

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }