// GET: Test/Details/{Guid} public ActionResult Details(Guid id) { if (id == Guid.Empty) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TestGridRow testGridRow = testServices.GetTest(id); if (testGridRow == null) { return(HttpNotFound()); } return(View(testGridRow)); }