feat(extensions): created extensions project.

- Moved encoding extensions from application to extensions project to increase the abstraction
This commit is contained in:
Developer 02
2024-10-01 17:25:50 +02:00
parent 792aa0b922
commit 728385b70a
13 changed files with 34 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
using EnvelopeGenerator.Application;
using EnvelopeGenerator.Application.Contracts;
using EnvelopeGenerator.Application.Contracts;
using EnvelopeGenerator.Application.DTOs;
using EnvelopeGenerator.Domain.Entities;
using Microsoft.AspNetCore.Mvc;
using EnvelopeGenerator.Extensions;
namespace EnvelopeGenerator.Web.Controllers.Test
{

View File

@@ -1,7 +1,7 @@
using DigitalData.Core.API;
using DigitalData.Core.DTO;
using EnvelopeGenerator.Application.Contracts;
using EnvelopeGenerator.Application;
using EnvelopeGenerator.Extensions;
using EnvelopeGenerator.Domain.Entities;
using Microsoft.AspNetCore.Mvc;
using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver;
@@ -44,8 +44,8 @@ namespace EnvelopeGenerator.Web.Controllers.Test
{
if (isReadOnly)
{
var (Random1, ReadOnlyId, Random2) = envelopeReceiverId.DecodeEnvelopeReceiverReadOnlyId();
return Ok(new { random = new string?[] { Random1, Random2 }, readOnlyId = ReadOnlyId });
var readOnlyId = envelopeReceiverId.DecodeEnvelopeReceiverReadOnlyId();
return Ok(new { readOnlyId });
}
else
{