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