using RBLNews.Shared.Models; using RBLNews.Shared.Services.Contracts; namespace RBLNews.Web.Services; public class ConfigService : IConfigService { public AppSettingsModel AppSettings { get; } public ConfigService(IConfiguration configuration) { AppSettings = configuration.GetSection("App").Get(); if(this.AppSettings == null) throw new NullReferenceException("App settings not found"); } }