public static GraphPointDto ToDto(this GraphPointViewModel item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            return(new GraphPointDto
            {
                X = item.X,
                Y = item.Y
            });
        }
Esempio n. 2
0
 public GraphLineViewModel(GraphPointViewModel start, GraphPointViewModel end)
 {
     Start = start;
     End   = end;
 }