Refactor(EnvelopeModel): Entfernen Sie den unnötigen try-catch-Block in der Methode GetByUuid des EnvelopeModel.
This commit is contained in:
@@ -76,15 +76,9 @@ Public Class EnvelopeModel
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetByUuid(pEnvelopeUuid As String) As Envelope
|
Public Function GetByUuid(pEnvelopeUuid As String) As Envelope
|
||||||
Try
|
Dim oSql = $"SELECT * FROM [dbo].[TBSIG_ENVELOPE] WHERE ENVELOPE_UUID = '{pEnvelopeUuid}'"
|
||||||
Dim oSql = $"SELECT * FROM [dbo].[TBSIG_ENVELOPE] WHERE ENVELOPE_UUID = '{pEnvelopeUuid}'"
|
Dim oTable = Database.GetDatatable(oSql)
|
||||||
Dim oTable = Database.GetDatatable(oSql)
|
Return ToEnvelope(oTable)
|
||||||
|
|
||||||
Return ToEnvelope(oTable)
|
|
||||||
Catch ex As Exception
|
|
||||||
Logger.Error(ex)
|
|
||||||
Return Nothing
|
|
||||||
End Try
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetById(pEnvelopeId As Integer) As Envelope
|
Public Function GetById(pEnvelopeId As Integer) As Envelope
|
||||||
|
|||||||
Reference in New Issue
Block a user