public Response <GetReceiptDetailByConditionResponse> GetReceiptDetailByCondition(GetReceiptDetailByConditionRequest request, string ID) { Response <GetReceiptDetailByConditionResponse> response = new Response <GetReceiptDetailByConditionResponse>() { Result = new GetReceiptDetailByConditionResponse() }; if (request == null || request.SearchCondition == null) { ArgumentNullException ex = new ArgumentNullException("GetReceiptDetailByConditionResponse request"); LogError(ex); response.ErrorCode = ErrorCode.Argument; response.Exception = ex; return(response); } try { ReceiptManagementAccessor accessor = new ReceiptManagementAccessor(); response.Result = accessor.GetReceiptDetailByCondition(request.SearchCondition, ID); response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.Exception = ex; response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; } return(response); }