Add polygon to DTO convert strategy
This commit is contained in:
18
DataAccess/DTOs/DTOEntities/Shapes/CircleShapeDTO.cs
Normal file
18
DataAccess/DTOs/DTOEntities/Shapes/CircleShapeDTO.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class CircleShapeDTO : ICircleShape
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Diameter")]
|
||||
public double Diameter { get; set; }
|
||||
|
||||
public CircleShapeDTO(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user