AJH.CMS.Core.Data.ProductImageDataMapper.GetProductImage C# (CSharp) Method

GetProductImage() static private method

static private GetProductImage ( List ProductImages, System.Data.SqlClient.SqlDataReader reader ) : ProductImage
ProductImages List
reader System.Data.SqlClient.SqlDataReader
return AJH.CMS.Core.Entities.ProductImage
        internal static ProductImage GetProductImage(List<ProductImage> ProductImages, SqlDataReader reader)
        {
            int colIndex = 0;
            colIndex = reader.GetOrdinal(CN_PROD_IMAGE_ID);
            int value = reader.GetInt32(colIndex);

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

Same methods

ProductImageDataMapper::GetProductImage ( int id, int languageID ) : ProductImage