public void Save(string handlerHistoryJSON, string mediaId) { HandlerHistory handHist = new HandlerHistory(); handHist.MediaId = mediaId; handlerHistoryCommand.Save(handHist, cntx.GetUser().UserName, handlerHistoryJSON); }
/// <summary> /// Saves the specified encoding raw payload. /// </summary> /// <param name="encodingRawPayload">The encoding raw payload.</param> public void Save(HandlerHistory encodingPayload, string userName, string handlerHistoryJSON) { encodingPayload.RawJSONPayload = BsonDocument.Parse(handlerHistoryJSON); encodingPayload.CreatedDateTime = DateTime.UtcNow; encodingPayload.CreatedBy = userName; var handlerHistoryCollection = _database.GetCollection <HandlerHistory>(DataStoreConfiguration.HandlerHistoryCollection); handlerHistoryCollection.Save(encodingPayload); }