public async Task <IActionResult> Index() { var siteSetting = await _siteSettingService.GetAll().AsNoTracking().Include(s => s.SiteLogo).Include(s => s.FooterLogo).Include(s => s.FavIcon).FirstOrDefaultAsync(); if (siteSetting == null) { siteSetting = new SiteSetting { Name = "Site Name", Title = "site title", Description = "siteDes" }; await _siteSettingService.Create(siteSetting); } return(View(_mapper.Map <SiteSettingViewModel>(siteSetting))); }