Beispiel #1
0
 public IActionResult Delete(int id)
 {
     if (_repository.Delete(id))
     {
         return(NoContent());
     }
     return(NotFound());
 }
Beispiel #2
0
 public void Delete(Restaurant entity)
 {
     _RestaurantRepo.Delete(entity);
 }
Beispiel #3
0
        //public Address Address(int id)
        //{
        //    //throw new NotImplementedException();
        //}

        public bool Delete(int id)
        {
            return(restaurantRepo.Delete(id));
        }