public void LogServerClientCommunications(string rxCommand, string txCommand) { ServerClientCommunicationLog serverClientLog = new ServerClientCommunicationLog(); serverClientLog.TxCommand = txCommand; serverClientLog.RxCommand = rxCommand; serverClientLog.Time = DateTime.Now; serverClientLog.Result = rxCommand.Validate(); sqlCommunicatior.LogServerClientCommunications(serverClientLog); }
public void LogServerClientCommunications(ServerClientCommunicationLog log) { dbContext.CommunicationLog.Add(log); SaveChanges(); }