Example #1
0
        public async Task <GetTransactionTypeDto> CreateTransactionTypeAsync(CreateTransactionTypeDto transactionTypeDto)
        {
            await CheckTransactionTypeAsync(0, transactionTypeDto.Type);

            var transactionType = _mapper.Map <TransactionType>(transactionTypeDto);

            transactionType = await _transactionType.AddTransactionTypeAsync(transactionType);

            return(_mapper.Map <GetTransactionTypeDto>(transactionType));
        }