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

            _context.PointTransactionType.Update(cleanTokenType);

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

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

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