private EntityTypeDTOCollection HydrateEntityTypeDTO(EntityTypeCollection entityTypeCollection)
        {
            EntityTypeDTOCollection tempCollection = new EntityTypeDTOCollection();

            if (entityTypeCollection != null && entityTypeCollection.Count > 0)
            {
                foreach (EntityType item in entityTypeCollection)
                {
                    if (!string.IsNullOrEmpty(item.EntityTypeName))
                    {
                        EntityTypeDTO temp = new EntityTypeDTO()
                        {
                            EntityTypeId   = item.EntityTypeId,
                            EntityTypeName = item.EntityTypeName
                        };
                        if (!string.IsNullOrEmpty(item.DisplayName))
                        {
                            temp.DisplayName = item.EntityTypeName;
                        }

                        tempCollection.Add(temp);
                    }
                    else
                    {
                        tempCollection.Add(new EntityTypeDTO {
                            EntityTypeId = item.EntityTypeId
                        });
                    }
                }
            }
            return(tempCollection);
        }
        private EntityTypeDTOCollection HydrateEntityTypeDTO(EntityTypeCollection entityTypeCollection)
        {
            EntityTypeDTOCollection tempCollection = new EntityTypeDTOCollection();

            if (entityTypeCollection != null && entityTypeCollection.Count > 0)
            {
                foreach (EntityType item in entityTypeCollection)
                {
                    if (!string.IsNullOrEmpty(item.EntityTypeValue))
                        tempCollection.Add(new EntityTypeDTO { EntityTypeId = item.EntityTypeId, EntityTypeValue = item.EntityTypeValue });
                    else
                        tempCollection.Add(new EntityTypeDTO { EntityTypeId = item.EntityTypeId });
                }
            }

            return tempCollection;
        }