Пример #1
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private AuthResponseModel Convert(AuthDataModel resultObject)
        {
            // Local variable declaration
            AuthResponseModel response = null;

            // Variable initialize
            response = new AuthResponseModel();

            response.UserCd = DataHelper.ToString(resultObject.UserCd);
            response.UserName = DataHelper.ToString(resultObject.UserName);

            return response;
        }
Пример #2
0
        /// <summary>
        /// Execute processing.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>ResponseModel</returns>
        private AuthResponseModel Execute(AuthRequestModel request)
        {
            // Local variable declaration
            AuthResponseModel response = null;
            AuthDataModel inputObject = null;
            AuthDataModel resultObject = null;

            // Variable initialize
            response = new AuthResponseModel();

            // Execute convert input.
            inputObject = Convert(request);

            // Auth infomation
            resultObject = AuthInfo(inputObject);

            // Execute convert ouput.
            response = Convert(resultObject);

            return response;
        }