Example #1
0
        public IActionResult UpdateQuery(QueryAndQueryParamsViewModel updateModel)
        {
            QueryControllerLogic qcl = new QueryControllerLogic(_queryRepository);

            qcl.UpdateQuery(updateModel);
            return(Ok());
        }
Example #2
0
        public IActionResult GetQueryModelWithoutList(int queryId)
        {
            bool needSqlList = false;
            QueryControllerLogic         qcl = new QueryControllerLogic(_queryRepository);
            QueryAndQueryParamsViewModel svm = qcl.GetQueryViewModel(queryId, needSqlList);

            return(Ok(svm));
        }