public ActionResult DeleteAdvertisement(int AdvertisementID) { Advertisement delete = _AdvertisementRepo.Find(r => r.AdvertisementID == AdvertisementID); _AdvertisementRepo.Delete(delete); return(RedirectToAction("Advertisement")); }