public ActionResult Create(evenement e, HttpPostedFileBase image) { if (!ModelState.IsValid || image == null || image.ContentLength == 0) { RedirectToAction("List"); } e.AgenceId = 1; e.Image = image.FileName; ise.Add(e); ise.Commit(); var path = Path.Combine(Server.MapPath("~/Content/Upload/"), image.FileName); image.SaveAs(path); return(RedirectToAction("List", "Evenement")); return(View()); }