This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using CRBM2.Domain.Core; | |
using System.Linq; | |
using Framework.Serialization; | |
using CRBM2.Domain.Prepaid; | |
using System.Runtime.Serialization; | |
namespace CRBM2.Domain.Prepaid | |
{ | |
[Serializable] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//A third way. | |
//In a business logic module. Note: replace "internal" methods with your own logic (redis, mongodb, etc). | |
function getBlogByGuid(id, callback) { | |
internalLoad(id, function(err, post) { | |
if (err) return callback(err); | |
}); | |
} | |
function deleteDocumentById(id, callback) { | |
internalDelete(id, function(err) { |