Exemple #1
0
        public async Task <Unit> Handle(CreateAccountTypeCommand request, CancellationToken cancellationToken)
        {
            AccountType accountType = new AccountType
            {
                TypeName    = request.AccountType.TypeName,
                Description = request.AccountType.Description,
                Interest    = request.AccountType.Interest
            };

            await _repository.Create(accountType);

            return(Unit.Value);
        }