예제 #1
0
 public Step DeepClone()
 {
     Step newStep = new Step();
     newStep.Result = this.Result;
     newStep.Action = this.Action;
     return newStep;
 }
예제 #2
0
        public ActionResult Create(Step step)
        {
            if (ModelState.IsValid)
            {
                db.Steps.Add(step);
                db.SaveChanges();
                return RedirectToAction("Edit", "TestCase", new { id = step.TestCaseId } );
            }

            return View(step);
        }
예제 #3
0
 public ActionResult Edit(Step step)
 {
     if (ModelState.IsValid)
     {
         db.Entry(step).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(step);
 }