public ActionResult LoadIcon() { HttpPostedFileBase file = Request.Files["Icon"]; if (file != null && file.ContentLength > 0) { file.SaveAs(HttpContext.Server.MapPath(SiteModel.getLogoIconFolder()) + SiteModel.getLogoIcon()); } return(View(new SiteModel())); }