refactor: make CreateShowEnvelopeView and SignInEnvelopeAsync generic method

This commit is contained in:
Developer 02
2025-09-09 13:59:55 +02:00
parent 2ae6dda27e
commit 41f5d9f1e4
2 changed files with 6 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ using Microsoft.Extensions.Localization;
using Newtonsoft.Json;
using OtpNet;
using EnvelopeGenerator.Domain.Constants;
using EnvelopeGenerator.Application.Dto.Receiver;
namespace EnvelopeGenerator.Web.Controllers;
@@ -141,7 +142,8 @@ public class HomeController : ViewControllerBase
}
[Obsolete("Use MediatR")]
private async Task<IActionResult> CreateShowEnvelopeView(string envelopeReceiverId, EnvelopeReceiverDto er)
private async Task<IActionResult> CreateShowEnvelopeView<TReceiver>(string envelopeReceiverId, EnvelopeReceiverDto<TReceiver> er)
where TReceiver : ReceiverDto
{
try
{