Ejemplo n.º 1
0
        public ActionResult DeleteAdvertisement(int AdvertisementID)
        {
            Advertisement delete = _AdvertisementRepo.Find(r => r.AdvertisementID == AdvertisementID);

            _AdvertisementRepo.Delete(delete);
            return(RedirectToAction("Advertisement"));
        }