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

            if (res != null)
            {
                return(RedirectToAction("Index"));
            }
            ViewBag.Message = "Невозможно обновить тестпул";
            return(View(testPool));
        }
Exemplo n.º 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));
        }