You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IRestaurantRepository.cs 700B

12345678910111213141516171819202122
  1. using ProRestaurant.Containers;
  2. using ProRestaurant.Models.Restaurants;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. namespace ProRestaurant.Repository.Restaurants
  8. {
  9. public interface IRestaurantRepository
  10. {
  11. List<Restaurant> GetRestaurants();
  12. List<RestaurantCard> GetSearch();
  13. List<TradingHours> GetTradingHours(int restaurantId);
  14. RestaurantDetails GetRestaurant(Func<Restaurant, bool> where);
  15. void Insert(Restaurant restaurant);
  16. void Remove(Restaurant restaurant);
  17. void Update(RestaurantDetails restaurant);
  18. void RemoveTradeHours(int id);
  19. void Save();
  20. }
  21. }