/// <summary>
 /// Adds a workflow action to the database.
 /// </summary>
 /// <param name="workflowAction">The workflow action.</param>
 /// <returns>
 ///   <see langword="true" /> if the workflow action was added, else <see langword="false" />.
 /// </returns>
 protected override bool DoAddWorkflowAction(WorkflowAction workflowAction)
 {
     MongoCollection<BsonDocument> collection = this.Database.GetCollection(iApplyDb.WorkflowActions._COLLECTION_NAME);
     BsonDocument doc = BsonConverter.ConvertToBsonViaJson(workflowAction);
     WriteConcernResult result = collection.Save(doc);
     return result.Ok;
 }
 /// <summary>
 /// Adds a workflow action to the database..
 /// </summary>
 /// <param name="workflowAction">The workflow action.</param>
 /// <returns>
 ///   <see langword="true" /> if the workflow action was added, else <see langword="false" />.
 /// </returns>
 protected abstract bool DoAddWorkflowAction(WorkflowAction workflowAction);
 /// <summary>
 /// Adds a workflow action to the database..
 /// </summary>
 /// <param name="workflowAction">The workflow action.</param>
 /// <returns>
 ///   <see langword="true" /> if the workflow action was added, else <see langword="false" />.
 /// </returns>
 public bool AddWorkflowAction(WorkflowAction workflowAction)
 {
     return this.DoAddWorkflowAction(workflowAction);
 }