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