public IActionResult DeleteRace(string id) { model = new RaceModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword")); model.DeleteRace(id); return(RedirectToAction("Index")); }