public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SiteUser SiteUser = SiteUserManager.Find(x => x.Id == id.Value); if (SiteUser == null) { return(HttpNotFound()); } return(View(SiteUser)); }