예제 #1
0
파일: Extensions.cs 프로젝트: mmsatari/GTFS
 /// <summary>
 /// Adds or replaces an entity in the given collection.
 /// </summary>
 public static void AddOrReplace(this ITransferCollection collection, Entities.Transfer entity)
 {
     if (!collection.Contains(entity))
     {
         collection.Add(entity);
     }
 }
 public EmployeeService(ISetting setting, IUserCollection userCollection, IContext context, MongoDBClient mongoDBClient
                        , ITransactionCollection transactionCollection, ITransferCollection transferCollection, ILinkingBankCollection linkingBankCollection, IEncrypt Encrypt)
 {
     _Setting               = setting;
     _UserCollection        = userCollection;
     _Context               = context;
     _MongoDBClient         = mongoDBClient;
     _TransferCollection    = transferCollection;
     _TransactionCollection = transactionCollection;
     _LinkingBankCollection = linkingBankCollection;
     _Encrypt               = Encrypt;
 }
 public DeptReminderService(ISetting setting, IUserCollection userCollection, IDeptReminderCollection deptReminderCollection
                            , ILinkingBankCollection linkingBankCollection, MongoDBClient mongoDBClient, IContext context, ITransferCollection transferCollection
                            , ITransactionCollection transactionCollection)
 {
     _UserCollection         = userCollection;
     _Setting                = setting;
     _DeptReminderCollection = deptReminderCollection;
     _LinkingBankCollection  = linkingBankCollection;
     _MongoDBClient          = mongoDBClient;
     _Context                = context;
     _TransferCollection     = transferCollection;
     _TransactionCollection  = transactionCollection;
 }