/// <summary> /// Execute convert input. /// </summary> /// <param name="request">RequestModel</param> /// <returns>DataModel</returns> private InitDataModel Convert(InitRequestModel request) { // Local variable declaration InitDataModel inputObject = null; // Variable initialize inputObject = new InitDataModel(); // Convert data input DataHelper.ConvertInput(request, inputObject); // Return value return inputObject; }
/// <summary> /// Initialization process. /// </summary> /// <param name="request">RequestModel</param> /// <returns>ResponseModel</returns> public InitResponseModel Invoke(InitRequestModel request) { var response = Execute(request); return response; }
/// <summary> /// Execute processing. /// </summary> /// <param name="request">RequestModel</param> /// <returns>ResponseModel</returns> private InitResponseModel Execute(InitRequestModel request) { // Local variable declaration InitResponseModel response = null; InitDataModel inputObject = null; InitDataModel resultObject = null; // Variable initialize response = new InitResponseModel(); // Execute convert input. inputObject = Convert(request); // Check processing Check(inputObject); // Get infomation resultObject = GetInfo(inputObject); // Execute convert ouput. response = Convert(resultObject); return response; }