public ActionResult Modifier(Manga unM) { try { ServiceManga.UpdateManga(unM); return(View()); } catch (MonException e) { return(HttpNotFound()); } }
public ActionResult Modifier(Manga unM) { try { unM.Id_dessinateur = int.Parse(Request.Form["Id_dessinateur"].ToString()); unM.Id_scenariste = int.Parse(Request.Form["Id_scenariste"].ToString()); unM.Id_genre = int.Parse(Request.Form["Id_genre"].ToString()); unM.Couverture = Request.Form["Couverture"].ToString(); ServiceManga.UpdateManga(unM); return(RedirectToAction("Index", "Manga")); } catch (MonException e) { return(StatusCode(418)); } }