// GET: Resume/Details/5 public ActionResult Details(string id) { if (id == null) { return(Redirect("idnex")); //return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } Resume resume = bll.FindResume(id); if (resume == null) { return(Redirect("idnex")); } var projects = proBll.GetAllProjects().ToList(); ViewData["Projects"] = ChangeProjectModelToViewModel(projects); return(View(ChangeResumeModelToViewModel(resume))); }