Refactor endpoint commands and mappings

Removed unused `using` directives across files for cleanup. Deleted `CreateEndpointCommand` and `Endpoint` classes as they are no longer needed. Added `GetOrCreateCommand` to handle endpoint retrieval or creation. Updated `MappingProfile` to remove mappings for `CreateEndpointCommand` and ensure proper inheritance from `AutoMapper.Profile`.
This commit is contained in:
2025-12-01 15:48:58 +01:00
parent 46664d62ba
commit c6f2437300
3 changed files with 4 additions and 31 deletions

View File

@@ -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<CreateEndpointCommand, Endpoint>();
CreateMap<GetOrCreateCommand, Endpoint>();
}
}