// GET: admin/AccountBooks/Edit/5 public ActionResult Edit(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AccountBook accountBook = _service.GetSingleAccountBook((Guid)id); if (accountBook == null) { return(HttpNotFound()); } return(View(accountBook)); }