public ActionResult Details(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Employee employee = EB.Find((Guid)id); if (employee == null) { return(HttpNotFound()); } return(View(employee)); }
public ActionResult Details(Guid id) { return(View(EB.Find(id))); }