public void Hydrate(LookupOption lookupOption, LookupOptionDTO lookupOptionDTO)
 {
     lookupOption.LookupId     = lookupOptionDTO.LookupId;
     lookupOption.Name         = lookupOptionDTO.Name;
     lookupOption.FriendlyName = lookupOptionDTO.FriendlyName;
     lookupOption.Value        = lookupOptionDTO.Value;
     lookupOption.SortOrder    = lookupOptionDTO.SortOrder;
 }
        public LookupOptionDTO Create(LookupOption lookupOption)
        {
            if (lookupOption == null)
            {
                return(null);
            }

            var lookupOptionDTO = new LookupOptionDTO();

            lookupOptionDTO.LookupOptionId = lookupOption.LookupOptionId;
            lookupOptionDTO.LookupId       = lookupOption.LookupId;
            lookupOptionDTO.Name           = lookupOption.Name;
            lookupOptionDTO.FriendlyName   = lookupOption.FriendlyName;
            lookupOptionDTO.Value          = lookupOption.Value;
            lookupOptionDTO.SortOrder      = lookupOption.SortOrder;
            lookupOptionDTO.Lookup         = Create(lookupOption.Lookup);

            return(lookupOptionDTO);
        }