Beispiel #1
0
        private void SaveQuerySqlChanges(string queryId, O2CV1QueryDto queryDto)
        {
            var           sqlFromQueryBuilder = SqlFromQueryBuilder(queryId);
            O2CV1Business o2Cv1Business       = new O2CV1Business(_dbConnectionString);

            queryDto.QuerySql = sqlFromQueryBuilder;
            o2Cv1Business.SaveQuery(queryDto);
        }
Beispiel #2
0
        public ActionResult ExecuteOrder(string queryId)
        {
            var o2V1Business = new O2CV1Business(_dbConnectionString);
            var sql          = o2V1Business.BuildSqlFromQuery(queryId);

            o2V1Business.SaveQuery(queryId, sql);
            var queryFieldsDto       = o2V1Business.CreateOrderModel(queryId);
            var queryFieldsViewModel = CriteriaMapper.MapCriteriaDtoToCriteriaGridViewModel(queryFieldsDto);

            ViewBag.Message = "This is a partial view.";
            return(PartialView("_PlaceOrder", queryFieldsViewModel));
        }