Ejemplo n.º 1
0
        public List <BusinessServiceVersion> GetServiceBigVersionByServiceID(String serviceID)
        {
            List <BusinessServiceVersion> lstVersion   = BusinessServiceVersion.FindAllByServiceID(serviceID);
            List <BusinessServiceVersion> lstBigVerion = new List <BusinessServiceVersion>();

            foreach (Int32 bigVer in lstVersion.Select(x => x.BigVer).Distinct())
            {
                BusinessServiceVersion sv = lstVersion.Where(x => x.BigVer == bigVer).OrderByDescending(x => x.CreateDateTime).First();
                if (sv != null)
                {
                    lstBigVerion.Add(sv);
                }
            }

            return(lstBigVerion.OrderBy(x => x.BigVer).ToList());
        }
Ejemplo n.º 2
0
        public List <BusinessServiceVersion> GetServiceVersionByServiceID(String serviceID)
        {
            List <BusinessServiceVersion> lstVersion = BusinessServiceVersion.FindAllByServiceID(serviceID);

            return(lstVersion.OrderByDescending(x => x.CreateDateTime).ToList());
        }