AJH.CMS.Core.Data.GroupDataMapper.GetGroup C# (CSharp) Method

GetGroup() static private method

static private GetGroup ( List Groups, System.Data.SqlClient.SqlDataReader reader ) : Group
Groups List
reader System.Data.SqlClient.SqlDataReader
return AJH.CMS.Core.Entities.Group
        internal static Group GetGroup(List<Group> Groups, SqlDataReader reader)
        {
            int colIndex = 0;
            colIndex = reader.GetOrdinal(CN_GROUP_ID);
            int value = reader.GetInt32(colIndex);

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

Same methods

GroupDataMapper::GetGroup ( int id, int languageID ) : Group