예제 #1
0
파일: BuyLogic.cs 프로젝트: hieur8/web-mbec
        /// <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;
        }
예제 #2
0
파일: BuyLogic.cs 프로젝트: hieur8/web-mbec
        /// <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;
        }