public string Delete(int id) { Library exists = _repo.Get(id); if (exists == null) { throw new Exception("Invalid Id"); } if (_repo.Delete(id)) { return("Success"); } throw new Exception("Something went wrong with deleting that item"); }