/// <summary> /// Gets holding data for a user. Transforms data from DataContract to model UI class for HTML display. /// </summary> /// <param name="userID">User id to retrieve data for.</param> public List<HoldingDataModel> getHoldings(string userID) { dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL); dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);; try { return dalCustomer.getHoldings(userID); } catch { throw; } finally { dalCustomer.Close(); } }