public static GraphPointDto ToDto(this GraphPointViewModel item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } return(new GraphPointDto { X = item.X, Y = item.Y }); }
public GraphLineViewModel(GraphPointViewModel start, GraphPointViewModel end) { Start = start; End = end; }