public PointViewModel(Point point) { Id = point.Id; Name = point.Name; Description = point.Description; Latitude = point.Longitude; Longitude = point.Longitude; Coordinates = point.Coordinates; }
public PointApiViewModel(Point point) { Id = point.Id; Name = point.Name; Description = point.Description; Coordinates = point.Coordinates; DataLayersId = point.DataLayers?.Select(x => x.Id).ToList(); PageId = point.PageId; RegionId = point.RegionId; }
public EditPointViewModel(Point point) { Id = point.Id; Name = point.Name; Description = point.Description; Latitude = point.Longitude; Longitude = point.Longitude; Coordinates = point.Coordinates; Region = point.Region; PageId = point.PageId; RegionId = point.RegionId; //DataLayers = point.DataLayers.Select(x => new DataLayerViewModel(x)).ToList(); }
public PageViewModel(Page page, Point point, Region region) { Id = page.Id; Name = page.Name; Description = page.Description; Content = page.Content; ExternalId = page.ExternalId; Region = region; Point = point; PointId = point?.Id; PointName = point?.Name; RegionId = region?.Id; RegionName = region?.Name; if (page.Tags != null) Tags = page.Tags.Select(x => new TagViewModel(x)).ToList(); }