AJH.CMS.Core.Data.FeatureDataMapper.GetFeature C# (CSharp) Method

GetFeature() static private method

static private GetFeature ( List Features, System.Data.SqlClient.SqlDataReader reader ) : Feature
Features List
reader System.Data.SqlClient.SqlDataReader
return AJH.CMS.Core.Entities.Feature
        internal static Feature GetFeature(List<Feature> Features, SqlDataReader reader)
        {
            int colIndex = 0;
            colIndex = reader.GetOrdinal(CN_FEATURE_ID);
            int value = reader.GetInt32(colIndex);

            Feature Feature = Features.Where(c => c.ID == value).FirstOrDefault();
            if (Feature == null)
            {
                Feature = new Feature();
                Features.Add(Feature);
            }
            return Feature;
        }

Same methods

FeatureDataMapper::GetFeature ( int id, int languageID ) : Feature