Example #1
0
        public IActionResult TaBort(int id)
        {
            var sida = _context.Get(id);

            if (sida != null)
            {
                _context.TaBort(sida);
                return(RedirectToAction("Index", "Home"));
            }
            else
            {
                return(RedirectToAction("Error"));
            }
        }