/// <summary> /// Execute convert ouput. /// </summary> /// <param name="resultObject">DataModel</param> /// <returns>ResponseModel</returns> private SaveResponseModel Convert(SaveDataModel resultObject) { // Local variable declaration SaveResponseModel response = null; // Variable initialize response = new SaveResponseModel(); // Set value response.OfferCd = DataHelper.ToString(resultObject.OfferCd); response.AddMessage(MessageHelper.GetMessageInfo("I_MSG_00001")); // Return value return response; }
/// <summary> /// Execute processing. /// </summary> /// <param name="request">RequestModel</param> /// <returns>ResponseModel</returns> private SaveResponseModel Execute(SaveRequestModel request) { // Local variable declaration SaveResponseModel response = null; SaveDataModel inputObject = null; SaveDataModel resultObject = null; // Variable initialize response = new SaveResponseModel(); // Execute convert input. inputObject = Convert(request); // Check processing Check(inputObject); // Save infomation resultObject = SaveInfo(inputObject); // Execute convert ouput. response = Convert(resultObject); return response; }