Esempio n. 1
0
        public ActionResult Delete(SportsSide.DAL.ANNOUNCEMENTS announcement)
        {
            var result = webApi.DeleteAnnouncements(announcement);

            if (result == false)
            {
                TempData["Hata"] = "Bir hata oluştu.";
                return(View(announcement));
            }
            return(RedirectToAction("Index", "Announcements"));
        }