/// <summary> GetAllAgeGroupsByIDs method for getting All AgeGroup Details </summary> /// <param name="objects">The objects.</param> /// <returns> List of All AgeGroup Details </returns> /// public List <AgeGroup> GetAllAgeGroupsByIDs(List <BusinessObjects.Objects> objects) { string CSVAgeGroup = string.Join(",", objects.Select(p => p.ID.ToString())); CSVAgeGroup = CSVAgeGroup.Trim(','); return(DbCore.ReadList <AgeGroup>(SPGetAllAgeGroupsByIDs, Make, ConnectionString, CommandType.StoredProcedure, DbCore.CreateParameter("@AgeGroupsIDs", CSVAgeGroup))); }