// GET: ContractController/Delete public IActionResult Delete(int id) { ViewData[nameof(Contract.ContractTitel)] = _gebruikerRepository.GetByContractNr(id).ContractTitel; return(View()); }