public ActionResult RemovePhoto(int AdmissionId) { string fileName = addmissionService.RemovePhoto(AdmissionId); var filePath = Server.MapPath("~" + fileName); FileInfo file = new FileInfo(filePath); if (file.Exists) { file.Delete(); } return(Json("Delete", JsonRequestBehavior.AllowGet)); }