Refactor SQL command and simplify constructor
Updated the `EnvelopeReceiverAddReadSQL` class to correct the formatting of the `@EMAIL_ADRESS` parameter in the SQL command string and improved the XML documentation comments for better readability. Modified the `EnvelopeReceiverExecutor` class by removing the `ILogger<EnvelopeExecutor>` parameter from the constructor, simplifying its signature while retaining necessary dependencies.
This commit is contained in:
parent
2692fee6d2
commit
42451a767b
@ -14,12 +14,11 @@ public class EnvelopeReceiverAddReadSQL : ISQL<Envelope>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string Raw => @"
|
public string Raw => @"
|
||||||
USE [DD_ECM]
|
USE [DD_ECM]
|
||||||
|
|
||||||
DECLARE @OUT_RECEIVER_ID int
|
DECLARE @OUT_RECEIVER_ID int
|
||||||
|
|
||||||
EXEC [dbo].[PRSIG_API_CREATE_RECEIVER]
|
EXEC [dbo].[PRSIG_API_CREATE_RECEIVER]
|
||||||
@ENV_UID = @ENV_UID,
|
@ENV_UID = @ENV_UID,
|
||||||
@EMAIL_ADRESS = @EMAIL_ADRESS ,
|
@EMAIL_ADRESS = @EMAIL_ADRESS,
|
||||||
@SALUTATION = @SALUTATION,
|
@SALUTATION = @SALUTATION,
|
||||||
@PHONE = @PHONE,
|
@PHONE = @PHONE,
|
||||||
@OUT_RECEIVER_ID = @OUT_RECEIVER_ID OUTPUT
|
@OUT_RECEIVER_ID = @OUT_RECEIVER_ID OUTPUT
|
||||||
@ -29,14 +28,14 @@ public class EnvelopeReceiverAddReadSQL : ISQL<Envelope>
|
|||||||
WHERE [GUID] = @OUT_RECEIVER_ID;
|
WHERE [GUID] = @OUT_RECEIVER_ID;
|
||||||
";
|
";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="envelope_uuid"></param>
|
/// <param name="envelope_uuid"></param>
|
||||||
/// <param name="emailAddress"></param>
|
/// <param name="emailAddress"></param>
|
||||||
/// <param name="salutation"></param>
|
/// <param name="salutation"></param>
|
||||||
/// <param name="phone"></param>
|
/// <param name="phone"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static DynamicParameters CreateParameters(string envelope_uuid, string emailAddress, string? salutation = null, string? phone = null)
|
public static DynamicParameters CreateParameters(string envelope_uuid, string emailAddress, string? salutation = null, string? phone = null)
|
||||||
{
|
{
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
|
|||||||
@ -14,7 +14,7 @@ public class EnvelopeReceiverExecutor: SQLExecutor, IEnvelopeReceiverExecutor
|
|||||||
{
|
{
|
||||||
private readonly IEnvelopeReceiverRepository _erRepository;
|
private readonly IEnvelopeReceiverRepository _erRepository;
|
||||||
|
|
||||||
public EnvelopeReceiverExecutor(ILogger<EnvelopeExecutor> logger, IServiceProvider provider, IOptions<SQLExecutorParams> sqlExecutorParamsOptions, IEnvelopeReceiverRepository erRepository) : base(provider, sqlExecutorParamsOptions)
|
public EnvelopeReceiverExecutor(IServiceProvider provider, IOptions<SQLExecutorParams> sqlExecutorParamsOptions, IEnvelopeReceiverRepository erRepository) : base(provider, sqlExecutorParamsOptions)
|
||||||
{
|
{
|
||||||
_erRepository = erRepository;
|
_erRepository = erRepository;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user