Refactor GetOrCreateEndpointCommand to ObtainEndpointCommand
Replaced `GetOrCreateEndpointCommand` with `ObtainEndpointCommand` to improve clarity and align with naming conventions. Removed `GetOrCreateEndpointCommand` and its handler, and introduced `ObtainEndpointCommand` with equivalent functionality. Updated `MappingProfile.cs` to map `ObtainEndpointCommand` to `Endpoint`. Refactored `CreateRecActionCommand.cs` to use the new `ObtainEndpointCommand` for retrieving or creating `Endpoint` entities. These changes ensure consistent naming and maintain the same behavior while improving code readability.
This commit is contained in:
@@ -7,6 +7,6 @@ public class MappingProfile : AutoMapper.Profile
|
||||
{
|
||||
public MappingProfile()
|
||||
{
|
||||
CreateMap<GetOrCreateEndpointCommand, Endpoint>();
|
||||
CreateMap<ObtainEndpointCommand, Endpoint>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user