public ActionResult ChangeBanner(HttpPostedFileBase ImagePath) { if (ImagePath != null && ImagePath.ContentLength > 0) { var pic = "logo" + ".png"; var path = System.IO.Path.Combine( Server.MapPath("~/Content/Images"), pic); ImagePath.SaveAs(path); } return RedirectToAction("Index"); }