/// <summary>
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        /// <exception cref="KeyNotFoundException"></exception>
        public async Task DeleteRestaurant(string name)
        {
            var restaurant = await _restaurantRepo.GetRestaurantByNameAsync(name) ?? throw new KeyNotFoundException("Restaurant doesn't exist");

            _restaurantRepo.DeleteRestaurant(restaurant);
            await _unitOfWork.SaveAsync();
        }
 public async Task <bool> DeleteRestaurant(int restaurantID)
 {
     return(await _restaurantRepo.DeleteRestaurant(restaurantID));
 }
        public bool DeleteRestaurant(int RestaurantID)
        {
            var isSuccess = RestaurantRepo.DeleteRestaurant(RestaurantID);

            return(isSuccess);
        }