internal String Delete(int id) { if (_repo.Delete(id)) { return("Successfully Deleted"); } throw new Exception("Invalid Id"); }
internal Shoe Delete(int id) { Shoe foundShoe = GetById(id); if (_repo.Delete(id)) { return(foundShoe); } throw new Exception("Something bad happened..."); }
public string Delete(string id) { Shoe shoe = _repo.Get(id); if (shoe == null) { throw new Exception("Invalid Id Homie"); } _repo.Delete(id); return("Successfully Booted"); }