public void UpdateState(string id, TxtMsgProcessState state, string error = null) { TxtMsgInbound msg = GetById(id); msg.State = state; msg.ProessedDate = TimeUtil.GetCurrentUtcTime(); msg.ProcessError = error; MongoCnn.GetTxtMsgInboundCollection().Save(msg); }
public void UpdateState(TxtMsgOutbound txtMsgOutbound, TxtMsgProcessState state) { txtMsgOutbound.State = state; txtMsgOutbound.ProessedDate = TimeUtil.GetCurrentUtcTime(); MongoCnn.GetTxtMsgOutboundCollection().Save(txtMsgOutbound); }