public IActionResult DeleteSportComplex(SportComplex sportComplex) { ViewBag.Title = "Sportcomplex toevoegen"; _complexAccess.DeleteSportComplex(sportComplex.SportComplexId); return(RedirectToAction("SportComplex", new SportComplexViewModel { Complexes = _complexAccess.GetSportComplexes() })); }
public IActionResult Delete(int id) { _complexAccess.DeleteSportComplex(id); return(Ok()); }