Ejemplo n.º 1
0
        public List <Account> GetAccountsForUser([FromUri] Guid?userId = null)
        {
            var accountDao = new AccountDao();

            if (userId.HasValue)
            {
                return(accountDao.GetAccountsForUser(userId.Value));
            }
            else
            {
                return(accountDao.GetAllAccounts());
            }
        }