public Library Edit(Library updatedLibrary) { Library exists = _repo.Get(updatedLibrary.Id); if (exists == null) { throw new Exception("Invalid Id"); } return _repo.Edit(updatedLibrary); }