/// <summary> /// Gets a holding 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> /// <param name="holdingID">Holding id to retrieve data for.</param> public HoldingDataModel getHolding(string userID, int holdingID) { dalCustomer = Trade.DALFactory.Customer.Create(Settings.DAL); dalCustomer.Open(Settings.TRADEDB_SQL_CONN_STRING);; try { return dalCustomer.getHolding(userID, holdingID); } catch { throw; } finally { dalCustomer.Close(); } }