Exemplo n.º 1
0
        public async Task <Account> CreateNewAccountAsync(Account account)
        {
            if (!AccountValidator.ValidateDefault(account))
            {
                throw new InvalidOperationException(Resources.AccValidFailString);
            }

            return(await _accountsRepository.AddAccountAsync(account));
        }