// GET: Inscriptions/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Inscription inscription = this._repository.Get(id); if (inscription == null) { return(HttpNotFound()); } return(View("CreateEdit", inscription.Map <InscriptionViewModel>())); }
// GET: Inscriptions/Create public ActionResult Create() { Inscription inscription = new Inscription(); return(View("CreateEdit", inscription.Map <InscriptionViewModel>())); }