Exemplo n.º 1
0
        /// <summary>
        /// Retrieves the broker object having identifier <paramref name="Id"/> from the database.
        /// </summary>
        /// <param name="Id">The identifier of the broker.</param>
        /// <returns>The semi-populated broker entity if exists, or null.</returns>
        /// <remarks>The object based attributes of the entity that are persisted as XML are not populated by default. In order to fully populate the entity, call the <see cref="Materialize"/> method.</remarks>
        public Broker GetBroker(Int64 Id)
        {
            Broker b = BrokerRepo.Get(Id);

            return(b);
        }
Exemplo n.º 2
0
 public IEnumerable <Broker> GetBroker()
 {
     return(BrokerRepo.Get());
 }