public static CommandLogDTO Convert(CommandLog from) { CommandLogDTO res = new CommandLogDTO(); res.Id = from.Id; res.Name = from.Name; res.Sent = from.Sent; res.Timestamp = from.Timestamp; res.TokenDTO = TokenDTO.Convert(from.Token); res.CommandDTO = CommandDTO.Convert(from.Command); return res; }
public static CommandLogDTO Convert(CommandLog from) { CommandLogDTO res = new CommandLogDTO(); res.Id = from.Id; res.Name = from.Name; res.Sent = from.Sent; res.Timestamp = from.Timestamp; res.TokenDTO = TokenDTO.Convert(from.Token); res.CommandDTO = CommandDTO.Convert(from.Command); return(res); }