/// <summary> /// Checks if the send exists in the data base. /// </summary> /// <param name="reportId">Identifier of the send.</param> /// <param name="abaxXBRLCellStoreMongo">Data access object.</param> /// <returns>If the send exists.</returns> public static bool Update(string reportId, AbaxXBRLCellStoreMongo abaxXBRLCellStoreMongo) { var count = abaxXBRLCellStoreMongo.CuentaElementosColeccion(COLLECTION_NAME, "{\"reportId\":\"" + reportId + "\"}"); return(count > 0); }
/// <summary> /// Checks if the send exists in the data base. /// </summary> /// <param name="sendId">Identifier of the send.</param> /// <param name="abaxXBRLCellStoreMongo">Data access object.</param> /// <returns>If the send exists.</returns> public static bool ExistsDownloadId(string downloadId, AbaxXBRLCellStoreMongo abaxXBRLCellStoreMongo) { var count = abaxXBRLCellStoreMongo.CuentaElementosColeccion(COLLECTION_NAME, "{\"dimensionMap.downloadId\":\"" + downloadId + "\"}"); return(count > 0); }