Пример #1
0
        }//constructor

        #endregion Consturctors, Initialization & Destructor

        #region Methods

        #region General methods

        public cSecurities getListOfActiveSecs()
        { // Returns the collection of active securities
            cSecurities cActiveSecs = new cSecurities(m_objPortfolio);

            for (int iSecs = 0; iSecs < this.Count; iSecs++)
            {
                if (this[iSecs].isActive)
                {
                    cActiveSecs.Add(this[iSecs]);
                }
            }
            return(cActiveSecs);
        }//getListOfActiveSecs
Пример #2
0
        }//GetBMSecurities

        public ISecurities GetCustomSecurities(IQueryable <TopSecurities> topSecs)
        {
            List <Models.dbo.Security> colSecs   = AutoMapper.Mapper.Map <List <Models.dbo.Security> >(topSecs);
            List <cSecurity>           finalSecs = m_objPortfolio.ColHandler.convertListToCSecurity(colSecs);


            ISecurities secs = new cSecurities(m_objPortfolio);

            for (int iSecs = 0; iSecs < finalSecs.Count; iSecs++)
            {
                secs.Add(finalSecs[iSecs]);
            }

            return(secs);
            //return AutoMapper.Mapper.Map<List<Models.dbo.Security>>(topSecs);
        }