public ActionResult DeleteMeaningWId(int id)
        {
            var service = new MeaningService();

            service.DeleteMeaning(id);
            return(RedirectToAction("Index"));
        }
Example #2
0
        public ActionResult DeleteMeaning(int id)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }
            var service = new MeaningService();

            service.DeleteMeaning(id);

            TempData["SaveResult"] = "Your note was deleted";

            return(RedirectToAction("Index"));
        }