示例#1
0
 public ActionResult Look(TestPoolModel testPool)
 {
     /*       TestPool res = _modelSaver.CreateOrUpdate(testPool);
      *     if (res != null)
      *     {
      *         return RedirectToAction("Index");
      *     }
      *     ViewBag.Message = "Невозможно обновить тестпул";*/
     return(View(testPool));
 }
示例#2
0
        public ActionResult Edit(TestPoolModel testPool)
        {
            TestPool res = _modelSaver.CreateOrUpdate(testPool);

            if (res != null)
            {
                return(RedirectToAction("Index"));
            }
            ViewBag.Message = "Невозможно обновить тестпул";
            return(View(testPool));
        }
示例#3
0
        public ActionResult Create(TestPoolModel testPool)
        {
            TestPool res = _modelSaver.CreateOrUpdate(testPool);

            if (res != null)
            {
                return(RedirectToAction("Edit", new { id = res.Id }));
            }

            ViewBag.Message = "Невозможно сохранить тестпул";
            return(View(testPool));
        }