diff --git a/src/ReC.Application/Endpoints/Commands/CreateEndpointCommand.cs b/src/ReC.Application/Endpoints/Commands/CreateEndpointCommand.cs deleted file mode 100644 index 4472ea5..0000000 --- a/src/ReC.Application/Endpoints/Commands/CreateEndpointCommand.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ReC.Application.Endpoints.Commands; - -public class CreateEndpointCommand -{ -} - -public class Endpoint -{ - public bool Active { get; set; } = true; - - public string? Description { get; set; } - - public string Uri { get; set; } = null!; -} \ No newline at end of file diff --git a/src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs b/src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs index 0535020..368a82f 100644 --- a/src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs +++ b/src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs @@ -1,6 +1,7 @@ using DigitalData.Core.Abstraction.Application.Repository; using MediatR; using Microsoft.EntityFrameworkCore; +using ReC.Domain.Entities; namespace ReC.Application.Endpoints.Commands; diff --git a/src/ReC.Application/Endpoints/MappingProfile.cs b/src/ReC.Application/Endpoints/MappingProfile.cs index 1709186..6f53a38 100644 --- a/src/ReC.Application/Endpoints/MappingProfile.cs +++ b/src/ReC.Application/Endpoints/MappingProfile.cs @@ -1,18 +1,12 @@ -using AutoMapper; -using ReC.Application.Endpoints.Commands; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using ReC.Application.Endpoints.Commands; +using ReC.Domain.Entities; namespace ReC.Application.Endpoints; -public class MappingProfile : Profile +public class MappingProfile : AutoMapper.Profile { public MappingProfile() { - CreateMap(); CreateMap(); } }