diff --git a/DrSousan.Api/Pages/Shared/_Layout.cshtml b/DrSousan.Api/Pages/Shared/_Layout.cshtml index 2d466e6..4aeb688 100644 --- a/DrSousan.Api/Pages/Shared/_Layout.cshtml +++ b/DrSousan.Api/Pages/Shared/_Layout.cshtml @@ -1,3 +1,12 @@ +@using Microsoft.EntityFrameworkCore +@inject DrSousan.Api.Data.AppDbContext _layoutDb +@{ + var _identity = await _layoutDb.SiteSettings + .Where(s => s.Section == "identity") + .ToListAsync(); + var _logoUrl = _identity.FirstOrDefault(s => s.Key == "logo")?.Value ?? ""; + var _faviconUrl = _identity.FirstOrDefault(s => s.Key == "favicon")?.Value ?? ""; +} @@ -8,7 +17,15 @@ - + @if (!string.IsNullOrEmpty(_faviconUrl)) + { + + + } + else + { + + }