Esempio n. 1
0
        public PointTransactionType Update(PointTransactionType tokenType)
        {
            var cleanTokenType = RemoveTransactionTypeChildren(tokenType);

            _context.PointTransactionType.Update(cleanTokenType);

            return(cleanTokenType);
        }
Esempio n. 2
0
        private PointTransactionType RemoveTransactionTypeChildren(PointTransactionType transactionType)
        {
            var cleanTransactionType = transactionType;

            cleanTransactionType.Role = null;
            cleanTransactionType.PointTransactions = null;

            return(cleanTransactionType);
        }
Esempio n. 3
0
 public static PointTransactionType CreatePointTransactionType(int pointTransactionTypeID)
 {
     PointTransactionType pointTransactionType = new PointTransactionType();
     pointTransactionType.PointTransactionTypeID = pointTransactionTypeID;
     return pointTransactionType;
 }
Esempio n. 4
0
 public void AddToPointTransactionTypes(PointTransactionType pointTransactionType)
 {
     base.AddObject("PointTransactionTypes", pointTransactionType);
 }
Esempio n. 5
0
 public PointTransactionType UpdateTokenType(PointTransactionType tokenType)
 {
     return(_tokenTypeRepository.Update(tokenType));
 }