internal Card GetById(int id) { var exists = _repo.GetById(id); if (exists == null) { throw new Exception("Invalid id"); } return(exists); }