Beispiel #1
0
        public IActionResult Delete(int id)
        {
            try
            {
                var res = db.FindId(id);
                if (res != null)
                {
                    db.Delete(id);
                }
            }
            catch (Exception)
            {
                throw;
            }

            return(RedirectToAction("Index", "Players"));
        }