public ActionResult TopDetail(string node, string handle, int? offset = null) { var planHandle = HttpServerUtility.UrlTokenDecode(handle); var i = SQLInstance.Get(node); var vd = new OpsTopDetailModel { Instance = i, Op = i.GetTopOperation(planHandle, offset).Data }; return View("Operations.Top.Detail", vd); }
public ActionResult TopDetail(string node, string handle) { var planHandle = HttpServerUtility.UrlTokenDecode(handle); var instance = SQLInstance.Get(node); if (instance == null) return ContentNotFound("Server " + node + " not found."); var vd = new OpsTopDetailModel { Instance = instance, Op = instance.GetTopOperation(planHandle).Data }; return View("Operations.Top.Detail", vd); }