internal Library Delete(int id) { Library foundLibrary = GetById(id); if (_repo.Delete(id)) { return(foundLibrary); } throw new Exception("something failed"); }
public Library Delete(int libraryId) { return(_repo.Delete(libraryId)); }