public PointTransactionType Update(PointTransactionType tokenType) { var cleanTokenType = RemoveTransactionTypeChildren(tokenType); _context.PointTransactionType.Update(cleanTokenType); return(cleanTokenType); }
private PointTransactionType RemoveTransactionTypeChildren(PointTransactionType transactionType) { var cleanTransactionType = transactionType; cleanTransactionType.Role = null; cleanTransactionType.PointTransactions = null; return(cleanTransactionType); }
public static PointTransactionType CreatePointTransactionType(int pointTransactionTypeID) { PointTransactionType pointTransactionType = new PointTransactionType(); pointTransactionType.PointTransactionTypeID = pointTransactionTypeID; return pointTransactionType; }
public void AddToPointTransactionTypes(PointTransactionType pointTransactionType) { base.AddObject("PointTransactionTypes", pointTransactionType); }
public PointTransactionType UpdateTokenType(PointTransactionType tokenType) { return(_tokenTypeRepository.Update(tokenType)); }