public IActionResult Delete(int id) { if (_repository.Delete(id)) { return(NoContent()); } return(NotFound()); }
public void Delete(Restaurant entity) { _RestaurantRepo.Delete(entity); }
//public Address Address(int id) //{ // //throw new NotImplementedException(); //} public bool Delete(int id) { return(restaurantRepo.Delete(id)); }