public static DataDTO Convert(Data from) { DataTypeDTO t = new DataTypeDTO(); t.Id = 1; t.Name = "Temperature"; DataDTO res = new DataDTO(); res.Id = from.Id; res.Name = from.Name; res.Timestamp = from.Timestamp; res.Value = from.Value; res.Type = t; return res; }
public static DataDTO Convert(Data from) { DataTypeDTO t = new DataTypeDTO(); t.Id = 1; t.Name = "Temperature"; DataDTO res = new DataDTO(); res.Id = from.Id; res.Name = from.Name; res.Timestamp = from.Timestamp; res.Value = from.Value; res.Type = t; return(res); }