public UserQueryResult Get([FromBody] IncomingData data) { var service = new UserQueries(Startup.Configuration.GetConnectionString("SqlConfidenceData")); var result = service.Executequery(data.sqlquery); return(result); }