コード例 #1
0
        public ActionResult EditUser(int id = 0)
        {
            var userID = UserID;

            try
            {
                AdminUserInfo userInfo;
                if (id > 0)
                {
                    userInfo = adminUserBLL.GetAdminUserInfo(id);
                }
                else
                {
                    userInfo = new AdminUserInfo();
                }
                var page = new PagingModel()
                {
                    PageIndex = 1, PageSize = int.MaxValue
                };
                var RoleList = adminUserBLL.GetAdminRoleList(page);
                ViewBag.RoleList = RoleList.Items;
                return(View(userInfo));
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
            return(Content(""));
        }