Example #1
0
        /// <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)));
        }
Example #2
0
 /// <summary> GetAllAgeGroups method for getting All Age groups </summary>
 /// <returns> List of AllAgeGroups</returns>
 /// <remarks>  </remarks>
 public List <AgeGroup> GetAllAgeGroups()
 {
     return(DbCore.ReadList <AgeGroup>(SPGetAllAgeGroups, Make, ConnectionString, CommandType.StoredProcedure));
 }