@if (@ViewBag.Disabled == false || @ViewBag.Disabled == null) { <td> <button id="btn" class="button btn-primary" type="button" onclick="location.href='@Url.Action("RunAllTests", new { id = @id })'"> Run Test</button> <img id="loading" src="img/ajax-loader.gif" alt="" style="display:none;" /> </td> }
public IActionResult Index() { var items = _service.GetAllTests<Data>(); return View(items); }
public IActionResult RunAllTests(int id) { _service.RunAllTests(id); var items = _service.GetAllTests<Data>(); return RedirectToAction("Index"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)