private static HomeDisplayProperties HomeDefault(this HomeDisplayProperties dp, int package)
 {
     dp.Name           = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Name");
     dp.Image          = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Image");
     dp.Beds           = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Beds");
     dp.Bathes         = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Bathes");
     dp.Area           = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Area");
     dp.Price          = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Price");
     dp.SaleType       = OptionsResolver.IsActive(package, "Mslc.Ui.Home.SaleType");
     dp.Address        = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Address");
     dp.YearBuilt      = OptionsResolver.IsActive(package, "Mslc.Ui.Home.YearBuilt");
     dp.Deposit        = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Deposit");
     dp.ApplicationFee = OptionsResolver.IsActive(package, "Mslc.Ui.Home.ApplicationFee");
     dp.PetDeposit     = OptionsResolver.IsActive(package, "Mslc.Ui.Home.PetDeposit");
     dp.Description    = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Description");
     dp.Amenities      = OptionsResolver.IsActive(package, "Mslc.Ui.Home.Amenities");
     return(dp);
 }
        public static HomeDisplayProperties Home(this HomeDisplayProperties displayProperties, int package, EntityLocation location)
        {
            HomeDisplayProperties homeDisplayProperty = displayProperties ?? new HomeDisplayProperties();

            homeDisplayProperty = homeDisplayProperty.HomeDefault(package);
            if (location == EntityLocation.QuickView)
            {
                homeDisplayProperty.Name      = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.Name");
                homeDisplayProperty.Image     = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.Image");
                homeDisplayProperty.Beds      = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.Beds");
                homeDisplayProperty.Bathes    = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.Bathes");
                homeDisplayProperty.Area      = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.Area");
                homeDisplayProperty.Price     = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.Price");
                homeDisplayProperty.SaleType  = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.SaleType");
                homeDisplayProperty.Address   = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.Address");
                homeDisplayProperty.YearBuilt = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.YearBuilt");
                homeDisplayProperty.LeadForm  = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Home.LeadForm");
                homeDisplayProperty.PhotoTour = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Community.PhotoTour");
            }
            else if (location == EntityLocation.CommunityDetails)
            {
                homeDisplayProperty.Name           = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Name");
                homeDisplayProperty.Image          = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Image");
                homeDisplayProperty.Beds           = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Beds");
                homeDisplayProperty.Bathes         = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Bathes");
                homeDisplayProperty.Area           = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Area");
                homeDisplayProperty.Price          = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Price");
                homeDisplayProperty.SaleType       = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.SaleType");
                homeDisplayProperty.Address        = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Address");
                homeDisplayProperty.YearBuilt      = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.YearBuilt");
                homeDisplayProperty.Deposit        = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Deposit");
                homeDisplayProperty.ApplicationFee = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.ApplicationFee");
                homeDisplayProperty.PetDeposit     = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.PetDeposit");
                homeDisplayProperty.Description    = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.Description");
                homeDisplayProperty.LeadForm       = OptionsResolver.IsActive(package, "Mslc.Ui.Details.Home.LeadForm");
                homeDisplayProperty.PhotoTour      = OptionsResolver.IsActive(package, "Mslc.Ui.Search.QuickView.Community.PhotoTour");
            }
            return(homeDisplayProperty);
        }