// GET: Mission/Details/5 public ActionResult Details(int id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } mission m = ms.GetById(id); MissionModel M1 = new MissionModel() { M_TITLE = m.M_TITLE, notes = m.notes, M_DESCRIPTION = m.M_DESCRIPTION, DATE_DEB = m.DATE_DEB, DATE_FIN = m.DATE_FIN, manager_U_ID = m.manager_U_ID, }; if (m == null) { return(HttpNotFound()); } return(View(M1)); }