Exemple #1
0
        public List <dynamic> SendRequest(JSONParametrs Request)
        {
            var Result = new List <dynamic>();

            using (IDbConnection dbConnection = new SqlConnection(Request.ConnectionString))
            {
                dbConnection.Open();
                Result = dbConnection.Query(Request.StringRequest, null, null, true, Request.TimeOutInSecond).ToList();
            }

            return(Result);
        }
Exemple #2
0
        public List <dynamic> GetData(JSONParametrs Request)
        {
            if (Request.TimeOutInSecond == 0 ||
                Request.ConnectionString == string.Empty ||
                Request.StringRequest == string.Empty)
            {
                return(null);
            }

            var answer = ServiceSQL.SendRequest(Request);

            return(answer);
        }