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