public List <Account> GetAccountsForUser([FromUri] Guid?userId = null) { var accountDao = new AccountDao(); if (userId.HasValue) { return(accountDao.GetAccountsForUser(userId.Value)); } else { return(accountDao.GetAllAccounts()); } }
public List <Account> GetAccountsForUser([FromUri] Guid?userId = null) { var accountDao = new AccountDao(); if (userId.HasValue) { return(accountDao.GetAccountsForUser(userId.Value)); } else { return(accountDao.GetAllAccounts()); } }