public ActionResult Edit(Employee emp, HttpPostedFileBase upload) { string path = Path.Combine(Server.MapPath("~/upload/"), upload.FileName); upload.SaveAs(path); emp.Image = upload.FileName; DAL.EditEmployee(emp); return(RedirectToAction("Index")); }