public ActionResult Get() { var employee = new tableinformation() { name = _appSettings.name, Project = _appSettings.Project, Country = _appSettings.Country, Email = _appSettings.Email, Technology = _appSettings.Technology }; var listOfEmployees = new List <tableinformation>(); listOfEmployees.Add(employee); return(Ok(listOfEmployees)); }
public ReadJasonController(IOptions <tableinformation> appSettings) { _appSettings = appSettings.Value; }