Esempio n. 1
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private DeleteResponseModel Convert(DeleteDataModel resultObject)
        {
            // Local variable declaration
            DeleteResponseModel responseModel = null;

            // Variable initialize
            responseModel = new DeleteResponseModel();

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

            // Return value
            return responseModel;
        }
Esempio n. 2
0
        /// <summary>
        /// Execute convert input.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>DataModel</returns>
        private DeleteDataModel Convert(DeleteRequestModel request)
        {
            // Local variable declaration
            DeleteDataModel inputObject = null;

            // Variable initialize
            inputObject = new DeleteDataModel();

            // Convert data input
            DataHelper.ConvertInput(request, inputObject);
            // Convert cart
            inputObject.Cart = DataHelper.ConvertInputCart(request.Cart);

            // Return value
            return inputObject;
        }
Esempio n. 3
0
        /// <summary>
        /// Delete infomation
        /// </summary>
        /// <param name="inputObject">DataModel</param>
        /// <returns>DataModel</returns>
        private DeleteDataModel DeleteInfo(DeleteDataModel inputObject)
        {
            // Local variable declaration
            DeleteDataModel getResult = null;
            CartCom cartCom = null;

            // Variable initialize
            getResult = new DeleteDataModel();
            cartCom = new CartCom(inputObject.Cart);

            // Delete data
            cartCom.DeleteItem(inputObject.ItemCd);

            // Set value
            getResult.Cart = cartCom.Items;

            // Return value
            return getResult;
        }