internal Library Delete(int id)
        {
            Library foundLibrary = GetById(id);

            if (_repo.Delete(id))
            {
                return(foundLibrary);
            }
            throw new Exception("something failed");
        }
Example #2
0
 public Library Delete(int libraryId)
 {
     return(_repo.Delete(libraryId));
 }