예제 #1
0
        /// <summary>
        /// Execute convert input.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>DataModel</returns>
        private SaveDataModel Convert(SaveRequestModel request)
        {
            // Local variable declaration
            SaveDataModel inputObject = null;

            // Variable initialize
            inputObject = new SaveDataModel();

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

            // Return value
            return inputObject;
        }
예제 #2
0
 private void setSaveRequestModel()
 {
     SaveRequestModel request = new SaveRequestModel();
         request.Email = email.Text.Trim().ToString();
         request.Password = pass.Text.ToString();
         request.Fullname = clientName.Text.Trim();
         request.Address = clientAddress.Text.Trim();
         request.Phone1 = clientTell.Text.Trim();
         request.CityCd = DropDownList1.SelectedValue;
         Session["SaveRequestModel"] = request;
 }
예제 #3
0
        /// <summary>
        /// Execute processing.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>ResponseModel</returns>
        private SaveResponseModel Execute(SaveRequestModel request)
        {
            // Local variable declaration
            SaveResponseModel responseModel = null;
            SaveDataModel inputObject = null;
            SaveDataModel resultObject = null;

            // Variable initialize
            responseModel = new SaveResponseModel();

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

            // Check processing.
            Check(inputObject);

            // Save infomation
            resultObject = SaveInfo(inputObject);

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

            return responseModel;
        }
예제 #4
0
 /// <summary>
 /// Save process.
 /// </summary>
 /// <param name="request">RequestModel</param>
 /// <returns>ResponseModel</returns>
 public SaveResponseModel Invoke(SaveRequestModel request)
 {
     var responseModel = Execute(request);
     return responseModel;
 }