예제 #1
0
        /// <summary>
        /// Used for the rss feed
        /// </summary>
        /// <returns>all the last funds' investments</returns>
        public static List <FundIncubation> GetNewFundIncubationList()
        {
            DateTime lastUpdate      = ExecutionUpdater.GetLastDateRss();
            var      fundIncubations = IncubationDataAccess.GetNewFundIncubation(lastUpdate);

            return(fundIncubations);
        }
예제 #2
0
        /// <summary>
        /// Used for the CRM
        /// </summary>
        /// <returns></returns>
        public static Dictionary <Entity, List <Incubation> > GetNewFundIncubation()
        {
            //	ExecutionUpdater.UpdateCrmSent();
            DateTime lastUpdate = ExecutionUpdater.GetLastDateCrmSent();
            List <FundIncubation> newFundIncubations = IncubationDataAccess.GetNewFundIncubation(lastUpdate);

            Dictionary <Entity, List <Incubation> > dic = new Dictionary <Entity, List <Incubation> >();

            foreach (var fund in newFundIncubations)
            {
                dic.Add(fund.Fund, fund.Incubations);
            }

            return(dic);
        }