public IActionResult Delete(int id) { if (repo.Get(id) == null) { return(NotFound()); } repo.Remove(id); return(new NoContentResult()); }