public ActionResult Look(TestPoolModel testPool) { /* TestPool res = _modelSaver.CreateOrUpdate(testPool); * if (res != null) * { * return RedirectToAction("Index"); * } * ViewBag.Message = "Невозможно обновить тестпул";*/ return(View(testPool)); }
public ActionResult Edit(TestPoolModel testPool) { TestPool res = _modelSaver.CreateOrUpdate(testPool); if (res != null) { return(RedirectToAction("Index")); } ViewBag.Message = "Невозможно обновить тестпул"; return(View(testPool)); }
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)); }