C#C
C#3y ago
dave1

Can someone point me in the right direction to write the following class so only the Command..

is accessible publically

public record UpsertAreaShapesCommand(
    long AreaId,
    List<Shapes>[] shapes
) : IRequest<Result<bool>>;

public record Shapes(
    string Title,
    Point[] Polygon
);

public record Point(
    double X,
    double Y
);


what is the 'correct' way of writing this so Point and Shape are only accessible from that command
Was this page helpful?