public JsonResult DeletePostImage(int ID) { string imagepath = bll.DeletePostImage(ID); if (System.IO.File.Exists(Server.MapPath("~/Areas/Admin/Content/PostImage/" + imagepath))) { System.IO.File.Delete(Server.MapPath("~/Areas/Admin/Content/PostImage/" + imagepath)); } return(Json("")); }