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:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user