コード例 #1
0
        public void SubmitForm(string roleList, string keyValue)
        {
            var roleArr         = roleList.Split(',');
            var accountRoleList = new List <AccountRoleEntity>();

            foreach (var roleGuid in roleArr)
            {
                var accountRoleEntity = new AccountRoleEntity();
                accountRoleEntity.Create();
                accountRoleEntity.roleInfoGuid    = roleGuid;
                accountRoleEntity.accountInfoGuid = keyValue;
                accountRoleList.Add(accountRoleEntity);
            }
            accountRoleRepository.SubmitForm(accountRoleList, keyValue);
        }