public ActionResult <Soep> DeleteSoep(int id) { Soep soep = _soepenRepository.GetBy(id); if (soep == null) { return(NotFound()); } _soepenRepository.Delete(soep); _soepenRepository.SaveChanges(); return(soep); }