Ejemplo n.º 1
0
        public Account GetAccount(long accountId)
        {
            var account = _repository.Get(accountId);

            if (account == null)
            {
                return(null);
            }
            if (_watchListService.IsOnWatchList(account.Id))
            {
                account.Status           = AccountStatuses.Frozen;
                account.LastActivityDate = DateTime.Today;
                account.TotalBalance     = 0;
            }
            return(account);
        }