public ActionResult AjaxView() { var role = _dnActiveRoleDa.GetRoleItemById(ArrId.FirstOrDefault()); ViewData.Model = role; return(View()); }
public ActionResult GetRoleItemById(string key, int id) { var obj = key != Keyapi ? new ActiveRoleItem() : _dl.GetRoleItemById(id);; return(Json(obj, JsonRequestBehavior.AllowGet)); }