Пример #1
0
        /// <summary>
        /// Execute convert input.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>DataModel</returns>
        private UploadDataModel Convert(UploadRequestModel request)
        {
            // Local variable declaration
            UploadDataModel inputObject = null;

            // Variable initialize
            inputObject = new UploadDataModel();

            // Convert data input
            DataHelper.ConvertInput(request, inputObject);

            // Return value
            return inputObject;
        }
Пример #2
0
        /// <summary>
        /// Execute processing.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>ResponseModel</returns>
        private UploadResponseModel Execute(UploadRequestModel request)
        {
            // Local variable declaration
            UploadResponseModel responseModel = null;
            UploadDataModel inputObject = null;
            UploadDataModel resultObject = null;

            // Variable initialize
            responseModel = new UploadResponseModel();

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

            // Check infomation
            Check(inputObject);

            // Upload infomation
            resultObject = UploadInfo(inputObject);

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

            return responseModel;
        }
Пример #3
0
 /// <summary>
 /// Upload process.
 /// </summary>
 /// <param name="request">RequestModel</param>
 /// <returns>ResponseModel</returns>
 public UploadResponseModel Invoke(UploadRequestModel request)
 {
     var response = Execute(request);
     return response;
 }