Ejemplo n.º 1
0
        /// <summary>
        /// Execute convert output.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private BuyResponseModel Convert(BuyDataModel resultObject)
        {
            // Local variable declaration
            BuyResponseModel responseModel = null;

            // Variable initialize
            responseModel = new BuyResponseModel();

            // Set value
            responseModel.Cart = resultObject.Cart;

            // Return value
            return(responseModel);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Execute processing.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>ResponseModel</returns>
        private BuyResponseModel Execute(BuyRequestModel request)
        {
            // Local variable declaration
            BuyResponseModel responseModel = null;
            BuyDataModel     inputObject   = null;
            BuyDataModel     resultObject  = null;

            // Variable initialize
            responseModel = new BuyResponseModel();

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

            // Check infomation
            Check(inputObject);

            // Get infomation
            resultObject = AddInfo(inputObject);

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

            return(responseModel);
        }