Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to pass variable into layout

$
0
0

Hi,

I want to use variable into layout. I have a model and table in database that is below. 

how to pass variable into layout in logic ? 

    public class WebSiteSetting
    {
        public int WebSiteSettingId { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string LogoImage { get; set; }
        public string Facebook { get; set; }
        public string Twitter { get; set; }
        public string LinkedIn { get; set; }
        public string Youtube { get; set; }
        public string Google { get; set; }
        public string Address { get; set; }
        public string Telephone { get; set; }
        public string Fax { get; set; }
        public string Email { get; set; }
        public bool LoginIsHome { get; set; }
        public bool CartIsHome { get; set; }
        public bool CategoriesIsHome { get; set; }
        public bool FavoritesIsHome { get; set; }
        public bool BrandsIsHome { get; set; }
    }


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>