Beispiel #1
0
        public EmployeeController(PatSamDbContext context)
        {
            _context = context;

            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile($"appsettings.json");
            var config = builder.Build();

            _urlBase = config.GetSection("API_Access:UrlBase").Value;
        }
Beispiel #2
0
 public EmployeeController(PatSamDbContext context)
 {
     _context = context;
 }