public ActionResult Select(string accessInd, string userId) { var viewModel = new UserAccessViewModel() { _userAccessPermission = (UserAccessService.GetUserAccessDetail(accessInd, userId)).userAccess }; viewModel._userAccessPermission.SelectedAccessInd = accessInd; return(View(viewModel)); }
public async Task <ActionResult> GetUserAccessDetail(string accessInd, string UserId) { var _userAccessPermission = (UserAccessService.GetUserAccessDetail(accessInd, UserId)).userAccess; var Selects = new UserAccess { Sts = await BaseService.GetRefLib("UserSts"), MapUserId = await UserAccessService.GetMap(), AccessInd = await BaseService.GetRefLib("AccessInd"), Title = await BaseService.GetRefLib("Title"), DeptId = await UserAccessService.GetRefLib("Dept") }; return(Json(new { User = _userAccessPermission, AccessInd = accessInd, _Selects = Selects }, JsonRequestBehavior.AllowGet)); }
public ActionResult ftUserAccessDetail(string accessind, string userid) { var data = (UserAccessService.GetUserAccessDetail(accessind, userid)).userAccess; return(Json(new { userAccess = data }, JsonRequestBehavior.AllowGet)); }