Refactor(EnvelopeModel): Entfernen Sie den unnötigen try-catch-Block in der Methode GetByUuid des EnvelopeModel.
This commit is contained in:
parent
dbb745338c
commit
55c0f44954
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user