public IActionResult edit(int id, [FromBody] testCase model)
        {
            var bs     = _context.BlockStep.First(t => t.Id == id);
            var bsAttr = bs.blockAttrs();

            var Paramets = model.getCustomParamet();

            Paramets.merge(bsAttr);

            ViewBag.id   = id;
            ViewBag.name = bs.Name;
            return(PartialView("_build", Paramets));
        }
Example #2
0
        public IActionResult readyRun(int id, [FromBody] testCase model)
        {
            //先保存
            save(id, model);

            var pms = model.getCustomParamet();

            if (pms.Count > 0)
            {
                return(PartialView("_readyRun", pms));
            }
            else
            {
                return(Content(""));
            }
        }
        public IActionResult build([FromBody] testCase model)
        {
            var Paramets = model.getCustomParamet();

            return(PartialView("_build", Paramets));
        }