public OrderCreatingsController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IOrderCreatingRepository ordercreatingRepository, IZoneRepository zoneRepository)
 {
     this.waiterRepository = waiterRepository;
     this.restaurantRepository = restaurantRepository;
     this.ordercreatingRepository = ordercreatingRepository;
     this.zoneRepository = zoneRepository;
 }
Пример #2
0
 public HomeController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IOrderRepository orderRepository, IOrderCreatingRepository orderCreatingRepository)
 {
     this.waiterRepository = waiterRepository;
     this.restaurantRepository = restaurantRepository;
     this.orderRepository = orderRepository;
     this.orderCreatingRepository = orderCreatingRepository;
 }
Пример #3
0
 public RestaurantLogic(IRestaurantRepository restaurantRepository, IRestaurantRatingLogic restaurantRatingLogic, IVoteLogic voteLogic, IRestaurantOptionRepository restaurantOptionRepository)
 {
     _restaurantRepository = restaurantRepository;
     _restaurantRatingLogic = restaurantRatingLogic;
     _voteLogic = voteLogic;
     _restaurantOptionRepository = restaurantOptionRepository;
 }
 public OrderPlacedsController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IOrderPlacedRepository orderplacedRepository, IOrderRepository orderRepository)
 {
     this.waiterRepository = waiterRepository;
     this.restaurantRepository = restaurantRepository;
     this.orderplacedRepository = orderplacedRepository;
     this.orderRepository = orderRepository;
 }
 public OrderPaidsController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IOrderPaidRepository orderpaidRepository, IProductTypeRepository producttypeRepository)
 {
     this.waiterRepository = waiterRepository;
     this.restaurantRepository = restaurantRepository;
     this.orderpaidRepository = orderpaidRepository;
     this.producttypeRepository = producttypeRepository;
 }
Пример #6
0
        public RestaurantService(IRestaurantRepository restaurantRepository)
        {
            if (restaurantRepository == null)
            {
                throw new NullReferenceException("RestaurantRepository");
            }

            _restaurantRepository = restaurantRepository;
        }
Пример #7
0
 public VoteLogic(IVoteRepository voteRepository, IRestaurantRepository restaurantRepository, IUserRepository userRepository)
 {
     if (voteRepository == null) throw new ArgumentNullException("voteRepository");
     if (restaurantRepository == null) throw new ArgumentNullException("restaurantRepository");
     if (userRepository == null) throw new ArgumentNullException("userRepository");
     _voteRepository = voteRepository;
     _restaurantRepository = restaurantRepository;
     _userRepository = userRepository;
 }
Пример #8
0
 public ChoiceHistoryService(IChoiceHistoryRepository repository, IVoteRepository voteRepository, IRestaurantRepository restaurantRepository)
 {
     this._repository           = repository;
     this._voteRepository       = voteRepository;
     this._restaurantRepository = restaurantRepository;
 }
 public RestaurantManager(IRestaurantRepository restaurantRepository)
 {
     _restaurantRepository = restaurantRepository;
 }
Пример #10
0
        public static void RunUi(IRestaurantRepository restaurantRepository,
                                 XmlSerializer serializer)
        {
            Console.WriteLine("Restaurant Reviews");

            while (true)
            {
                Console.WriteLine();
                Console.WriteLine("r:\tDisplay or modify restaurants.");
                Console.WriteLine("a:\tAdd new restaurant.");
                Console.WriteLine("s:\tSave data to disk.");
                Console.WriteLine("l:\tLoad data from disk.");
                Console.WriteLine();
                Console.Write("Enter valid menu option, or \"q\" to quit: ");
                var input = Console.ReadLine();
                if (input == "r")
                {
                    var restaurants = restaurantRepository.GetRestaurants().ToList();
                    Console.WriteLine();
                    if (restaurants.Count == 0)
                    {
                        Console.WriteLine("No restaurants.");
                    }
                    while (restaurants.Count > 0)
                    {
                        for (var i = 1; i <= restaurants.Count; i++)
                        {
                            Restaurant restaurant       = restaurants[i - 1];
                            var        restaurantString = $"{i}: \"{restaurant.Name}\"";
                            if (restaurant.Reviews?.Count > 0)
                            {
                                restaurantString += $", with score {restaurant.Score}"
                                                    + $" from {restaurant.Reviews.Count} review";
                                if (restaurant.Reviews.Count > 1)
                                {
                                    restaurantString += "s";
                                }
                            }
                            else
                            {
                                restaurantString += ", with no reviews";
                            }
                            Console.WriteLine(restaurantString);
                        }
                        Console.WriteLine();
                        Console.Write("Enter valid menu option, or \"b\" to go back: ");
                        input = Console.ReadLine();
                        if (int.TryParse(input, out var restaurantNum) &&
                            restaurantNum > 0 && restaurantNum <= restaurants.Count)
                        {
                            Restaurant    restaurant = restaurants[restaurantNum - 1];
                            List <Review> reviews    = restaurant.Reviews;
                            while (true)
                            {
                                Console.WriteLine();
                                var restaurantString = $"\"{restaurant.Name}\"";
                                if (reviews?.Count > 0)
                                {
                                    restaurantString += $", with score {restaurant.Score}"
                                                        + $" from {reviews.Count} review";
                                    if (reviews.Count > 1)
                                    {
                                        restaurantString += "s";
                                    }
                                }
                                else
                                {
                                    restaurantString += ", with no reviews";
                                }
                                Console.WriteLine(restaurantString);
                                Console.WriteLine();
                                if (reviews.Count > 0)
                                {
                                    Console.WriteLine("r:\tDisplay reviews.");
                                }
                                Console.WriteLine("a:\tAdd review.");
                                Console.WriteLine("e:\tEdit.");
                                Console.WriteLine("d:\tDelete.");
                                Console.WriteLine();
                                Console.Write("Enter valid menu option, or \"b\" to go back: ");
                                input = Console.ReadLine();
                                if (input == "r" && reviews.Count > 0)
                                {
                                    while (reviews.Count > 0)
                                    {
                                        Console.WriteLine();
                                        for (var i = 1; i <= reviews.Count; i++)
                                        {
                                            Review review = reviews[i - 1];
                                            Console.WriteLine($"{i}:"
                                                              + $" From \"{review.ReviewerName}\""
                                                              + $" with score {review.Score}"
                                                              + $" and text \"{review.Text}\"");
                                        }
                                        Console.WriteLine();
                                        Console.Write("Enter valid menu option,"
                                                      + " or \"b\" to go back: ");
                                        input = Console.ReadLine();
                                        if (int.TryParse(input, out var reviewNum) &&
                                            reviewNum > 0 && reviewNum <= reviews.Count)
                                        {
                                            Console.WriteLine();
                                            Console.WriteLine("e:\tEdit.");
                                            Console.WriteLine("d:\tDelete.");
                                            Console.WriteLine();
                                            Console.Write("Enter valid menu option, "
                                                          + "or \"b\" to go back: ");
                                            input = Console.ReadLine();
                                            if (input == "e")
                                            {
                                                Review review    = reviews[reviewNum - 1];
                                                var    newReview = new Review {
                                                    Id = review.Id
                                                };
                                                while (newReview.ReviewerName == null)
                                                {
                                                    Console.WriteLine();
                                                    Console.WriteLine("Current reviewer's name: "
                                                                      + review.ReviewerName);
                                                    Console.WriteLine();
                                                    Console.Write("Enter new reviewer's name: ");
                                                    input = Console.ReadLine();
                                                    try
                                                    {
                                                        newReview.ReviewerName = input;
                                                    }
                                                    catch (ArgumentException ex)
                                                    {
                                                        s_logger.Info(ex);
                                                        Console.WriteLine(ex.Message);
                                                    }
                                                }
                                                while (newReview.Score == null)
                                                {
                                                    Console.WriteLine();
                                                    Console.WriteLine($"Current score: "
                                                                      + review.Score);
                                                    Console.WriteLine();
                                                    Console.Write("Enter new score: ");
                                                    input = Console.ReadLine();
                                                    try
                                                    {
                                                        newReview.Score = int.Parse(input);
                                                    }
                                                    catch (FormatException ex)
                                                    {
                                                        s_logger.Info(ex);
                                                        Console.WriteLine(ex.Message);
                                                    }
                                                    catch (OverflowException ex)
                                                    {
                                                        s_logger.Info(ex);
                                                        Console.WriteLine(ex.Message);
                                                    }
                                                    catch (ArgumentException ex)
                                                    {
                                                        s_logger.Info(ex);
                                                        Console.WriteLine(ex.Message);
                                                    }
                                                }
                                                while (newReview.Text == null)
                                                {
                                                    Console.WriteLine();
                                                    Console.WriteLine("Current text: " +
                                                                      review.Text);
                                                    Console.WriteLine();
                                                    Console.Write("Enter new text: ");
                                                    input = Console.ReadLine();
                                                    try
                                                    {
                                                        newReview.Text = input;
                                                    }
                                                    catch (ArgumentException ex)
                                                    {
                                                        s_logger.Info(ex);
                                                        Console.WriteLine(ex.Message);
                                                    }
                                                }
                                                restaurantRepository.UpdateReview(newReview);
                                                restaurantRepository.Save();
                                                reviews[reviewNum - 1] = newReview;
                                            }
                                            else if (input == "d")
                                            {
                                                restaurantRepository.DeleteReview(reviews[reviewNum - 1].Id);
                                                restaurantRepository.Save();
                                            }
                                            else if (input == "b")
                                            {
                                                Console.WriteLine();
                                                break;
                                            }
                                            else
                                            {
                                                Console.WriteLine();
                                                Console.WriteLine($"Invalid input \"{input}\".");
                                                s_logger.Warn($"Invalid input \"{input}\".");
                                            }
                                        }
                                        else if (input == "b")
                                        {
                                            break;
                                        }
                                        else
                                        {
                                            Console.WriteLine();
                                            Console.WriteLine($"Invalid input \"{input}\".");
                                            s_logger.Warn($"Invalid input \"{input}\".");
                                        }
                                    }
                                }
                                else if (input == "a")
                                {
                                    var newReview = new Review();
                                    while (newReview.ReviewerName == null)
                                    {
                                        Console.WriteLine();
                                        Console.Write("Enter reviewer's name: ");
                                        input = Console.ReadLine();
                                        try
                                        {
                                            newReview.ReviewerName = input;
                                        }
                                        catch (ArgumentException ex)
                                        {
                                            s_logger.Info(ex);
                                            Console.WriteLine(ex.Message);
                                        }
                                    }
                                    while (newReview.Score == null)
                                    {
                                        Console.WriteLine();
                                        Console.Write("Enter score: ");
                                        input = Console.ReadLine();
                                        try
                                        {
                                            newReview.Score = int.Parse(input);
                                        }
                                        catch (FormatException ex)
                                        {
                                            s_logger.Info(ex);
                                            Console.WriteLine(ex.Message);
                                        }
                                        catch (OverflowException ex)
                                        {
                                            s_logger.Info(ex);
                                            Console.WriteLine(ex.Message);
                                        }
                                        catch (ArgumentException ex)
                                        {
                                            s_logger.Info(ex);
                                            Console.WriteLine(ex.Message);
                                        }
                                    }
                                    while (newReview.Text == null)
                                    {
                                        Console.WriteLine();
                                        Console.Write("Enter text: ");
                                        input = Console.ReadLine();
                                        try
                                        {
                                            newReview.Text = input;
                                        }
                                        catch (ArgumentException ex)
                                        {
                                            s_logger.Info(ex);
                                            Console.WriteLine(ex.Message);
                                        }
                                    }
                                    restaurantRepository.AddReview(newReview, restaurants[restaurantNum - 1]);
                                    restaurantRepository.Save();
                                }
                                else if (input == "e")
                                {
                                    var newRestaurant = new Restaurant
                                    {
                                        Id      = restaurant.Id,
                                        Reviews = reviews
                                    };
                                    while (newRestaurant.Name == null)
                                    {
                                        Console.WriteLine();
                                        Console.WriteLine($"Current name: {restaurant.Name}");
                                        Console.WriteLine();
                                        Console.Write("Enter the new restaurant's name: ");
                                        input = Console.ReadLine();
                                        try
                                        {
                                            newRestaurant.Name = input;
                                        }
                                        catch (ArgumentException ex)
                                        {
                                            s_logger.Info(ex);
                                            Console.WriteLine(ex.Message);
                                        }
                                    }
                                    restaurant = newRestaurant;
                                    restaurants[restaurantNum - 1] = restaurant;
                                    restaurantRepository.UpdateRestaurant(restaurant);
                                    restaurantRepository.Save();
                                }
                                else if (input == "d")
                                {
                                    restaurantRepository.DeleteRestaurant(restaurants[restaurantNum - 1].Id);
                                    restaurantRepository.Save();
                                    restaurants.RemoveAt(restaurantNum - 1);
                                    break;
                                }
                                else if (input == "b")
                                {
                                    Console.WriteLine();
                                    break;
                                }
                                else
                                {
                                    Console.WriteLine();
                                    Console.WriteLine($"Invalid input \"{input}\".");
                                    s_logger.Warn($"Invalid input \"{input}\".");
                                }
                            }
                        }
                        else if (input == "b")
                        {
                            break;
                        }
                        else
                        {
                            Console.WriteLine();
                            Console.WriteLine($"Invalid input \"{input}\".");
                            s_logger.Warn($"Invalid input \"{input}\".");
                        }
                    }
                }
                else if (input == "a")
                {
                    var restaurant = new Restaurant();
                    while (restaurant.Name == null)
                    {
                        Console.WriteLine();
                        Console.Write("Enter the new restaurant's name: ");
                        input = Console.ReadLine();
                        try
                        {
                            restaurant.Name = input;
                        }
                        catch (ArgumentException ex)
                        {
                            s_logger.Info(ex);
                            Console.WriteLine(ex.Message);
                        }
                    }
                    restaurantRepository.AddRestaurant(restaurant);
                    restaurantRepository.Save();
                }
                else if (input == "s")
                {
                    Console.WriteLine();
                    var restaurants = restaurantRepository.GetRestaurants().ToList();
                    try
                    {
                        using (var stream = new FileStream("../../../data.xml", FileMode.Create))
                        {
                            serializer.Serialize(stream, restaurants);
                        }
                        Console.WriteLine("Success.");
                    }
                    catch (SecurityException ex)
                    {
                        Console.WriteLine($"Error while saving: {ex.Message}");
                        s_logger.Error(ex, "Error while saving.");
                    }
                    catch (IOException ex)
                    {
                        Console.WriteLine($"Error while saving: {ex.Message}");
                        s_logger.Error(ex, "Error while saving.");
                    }
                }
                else if (input == "l")
                {
                    Console.WriteLine();
                    List <Restaurant> restaurants;
                    try
                    {
                        using (var stream = new FileStream("../../../data.xml", FileMode.Open))
                        {
                            restaurants = (List <Restaurant>)serializer.Deserialize(stream);
                        }
                        Console.WriteLine("Success.");
                        foreach (Restaurant item in restaurantRepository.GetRestaurants())
                        {
                            restaurantRepository.DeleteRestaurant(item.Id);
                        }
                        foreach (Restaurant item in restaurants)
                        {
                            restaurantRepository.AddRestaurant(item);
                        }
                        restaurantRepository.Save();
                    }
                    catch (FileNotFoundException)
                    {
                        Console.WriteLine("No saved data found.");
                        s_logger.Info("No saved data found.");
                    }
                    catch (SecurityException ex)
                    {
                        Console.WriteLine($"Error while loading: {ex.Message}");
                        s_logger.Error(ex, "Error while loading.");
                    }
                    catch (IOException ex)
                    {
                        Console.WriteLine($"Error while loading: {ex.Message}");
                        s_logger.Error(ex, "Error while loading.");
                    }
                }
                else if (input == "q")
                {
                    s_logger.Info("Exiting application.");
                    break;
                }
                else
                {
                    Console.WriteLine();
                    Console.WriteLine($"Invalid input \"{input}\".");
                    s_logger.Warn($"Invalid input \"{input}\".");
                }
            }
        }
 public RestaurantController(IRestaurantRepository restaurantRepository, ILanguageProvider languageProvider)
 {
     _restaurantRepository = restaurantRepository;
     _languageProvider = languageProvider;
 }
Пример #12
0
 public CuisinesController(IRestaurantRepository RestaurantRepository)
 {
     _RestaurantRepository = RestaurantRepository;
 }
 public SysAdminSearchForRestaurantsQueryHandler(IRestaurantRepository restaurantRepository, IPaymentMethodRepository paymentMethodRepository, IUserRepository userRepository)
 {
     this.restaurantRepository    = restaurantRepository;
     this.paymentMethodRepository = paymentMethodRepository;
     this.userRepository          = userRepository;
 }
Пример #14
0
 public RestaurantController(IRestaurantRepository contactRepository)
 {
     this.repo = contactRepository;
 }
 public OrderCookingsController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IOrderCookingRepository ordercookingRepository)
 {
     this.waiterRepository = waiterRepository;
     this.restaurantRepository = restaurantRepository;
     this.ordercookingRepository = ordercookingRepository;
 }
Пример #16
0
 public RestaurantController()
 {
     _restaurantContext      = Factory.GetRestaurantRepository();
     _restaurantAdminContext = Factory.GetRestaurantAdminRepository();
     _facade = new Facade();
 }
Пример #17
0
 public CustomerInfoController(IRestaurantRepository contactRepository)
 {
     this.repo = contactRepository;
 }
 public RestaurantIngredientMultiSelectListProvider(IRestaurantRepository restaurantRepository)
 {
     _restaurantRepository = restaurantRepository;
 }
Пример #19
0
 public CustomerInfoController()
 {
     this.repo = new RestaurantRepository(new RestaurantContext());
 }
Пример #20
0
 public RestaurantService(IRestaurantRepository RestaurantRepository, IUnitOfWork unitOfWork)
 {
     this.RestaurantRepository = RestaurantRepository;
     this.unitOfWork = unitOfWork;
 }
Пример #21
0
 public RestaurantManager(IRestaurantRepository restaurantRepo)
 {
     RestaurantRepo = restaurantRepo;
 }
 public RestaurantService(IRestaurantRepository repository, IReviewerRepository reviewRepository)
 {
     restaurantRepository = repository;
     reviewerRepository   = reviewRepository;
 }
Пример #23
0
 public RestaurantService(IRestaurantRepository restaurantRepository, ILocationRepository locationRepository, IStatusRepository statusRepository)
 {
     _restaurantRepository = restaurantRepository;
     _locationRepository   = locationRepository;
     _statusRepository     = statusRepository;
 }
 public ChangeRestaurantAddressCommandHandler(IRestaurantRepository restaurantRepository)
 {
     this.restaurantRepository = restaurantRepository;
 }
 public RestaurantService(IRestaurantRepository restaurantsRepository, IRestaurantViewModelFactory restaurantViewModelFactory)
 {
     _restaurantRepository       = restaurantsRepository;
     _restaurantViewModelFactory = restaurantViewModelFactory;
 }
 public RestaurantController(IRestaurantRepository restaurantRepo)
 {
     _restaurantRepo = restaurantRepo;
 }
Пример #27
0
 public RestaurantManager(IRestaurantRepository restaurantRepository, IMapper mapper)
 {
     this._restaurantRepository = restaurantRepository;
     this._mapper = mapper;
 }
Пример #28
0
 //
 // GET: /Restaurant/
 public RestaurantController(IRestaurantRepository repo)
 {
     _repo = repo;
 }
 public RemovePaymentMethodFromRestaurantCommandHandler(IRestaurantRepository restaurantRepository)
 {
     this.restaurantRepository = restaurantRepository;
 }
 public RemoveDishFromRestaurantCommandHandler(IRestaurantRepository restaurantRepository, IDishCategoryRepository dishCategoryRepository, IDishRepository dishRepository)
 {
     this.restaurantRepository   = restaurantRepository;
     this.dishCategoryRepository = dishCategoryRepository;
     this.dishRepository         = dishRepository;
 }
Пример #31
0
 public RestaurantsController(IRestaurantRepository restaurantRepository)
 {
     _restaurantRepository = restaurantRepository ?? throw new ArgumentNullException(nameof(restaurantRepository));
 }
Пример #32
0
 public RestaurantService(IRestaurantRepository repository, IMapper mapper)
 {
     this.repository = repository;
     this.mapper     = mapper;
 }
Пример #33
0
 public AccountService(IRestaurantRepository restaurantRepository)
 {
     RestaurantRepository = restaurantRepository;
 }
 public MenuItemIngredientsController(IRestaurantRepository restaurantRepository, IUserRepository userRepository)
 {
     _restaurantRepository = restaurantRepository;
     _userRepository = userRepository;
 }
 public OrdersController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IOrderRepository orderRepository)
 {
     this.waiterRepository     = waiterRepository;
     this.restaurantRepository = restaurantRepository;
     this.orderRepository      = orderRepository;
 }
Пример #36
0
 public EditModel(IRestaurantRepository restaurantRepository, IHtmlHelper htmlHelper)
 {
     _restaurantRepository = restaurantRepository;
     _htmlHelper           = htmlHelper;
 }
 public RestaurantAppService(IRestaurantRepository restaurantRepository, IReviewRepository reviewRepository)
 {
     this._restaurantRepository = restaurantRepository;
     this._reviewRepository     = reviewRepository;
 }
Пример #38
0
 public ListModel(IConfiguration configuration, IRestaurantRepository restaurantRepository)
 {
     this.configuration        = configuration;
     this.restaurantRepository = restaurantRepository;
 }
Пример #39
0
 public DetailModel(IRestaurantRepository restaurantData) => _restaurantData = restaurantData;
Пример #40
0
 public ApiRestaurantsFeeder(IMapper mapper, IRestaurantRepository restaurantRepository) : base(mapper, restaurantRepository)
 {
     _client = new HttpClient();
 }
 public StarMenuItemController(IRestaurantRepository restaurantRepository, IUserRepository userRepository)
 {
     _restaurantRepository = restaurantRepository;
     _userRepository = userRepository;
 }
Пример #42
0
 public RestaurantService(IRestaurantRepository bookRepository, IMapper mapper)
 {
     _restaurantRepository = bookRepository;
     _mapper = mapper;
 }
Пример #43
0
 public StaffInfoController()
 {
     this.repo = new RestaurantRepository(new RestaurantContext());
 }
 public RestaurantService(IRestaurantRepository restaurantRepository)
 {
     _restaurantRepository = restaurantRepository;
 }
 public RestaurantMenuController(IRestaurantRepository restaurantRepository, IUserRepository userRepository)
 {
     _restaurantRepository = restaurantRepository;
     _userRepository = userRepository;
 }
Пример #46
0
 public DetailModel(IRestaurantRepository restaurantRepository)
 {
     _restaurantRepository = restaurantRepository;
 }
Пример #47
0
 public ZonesController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IZoneRepository zoneRepository)
 {
     this.waiterRepository = waiterRepository;
     this.restaurantRepository = restaurantRepository;
     this.zoneRepository = zoneRepository;
 }
 public RestaurantsController(IRestaurantRepository restaurantRepository)
 {
     this.restaurantRepository = restaurantRepository;
 }
Пример #49
0
 public NewsController()
 {
     _newsContext          = Factory.GetNewsRepository();
     _restaurantRepository = Factory.GetRestaurantRepository();
 }
 public RestaurantFeatureContext(IUnitOfWork unitOfWork,IRestaurantRepository restaurantRepository)
     : base(unitOfWork)
 {
     _restaurantRepository = restaurantRepository;
 }
Пример #51
0
 public MenuController()
 {
     this.repo = new RestaurantRepository(new RestaurantContext());
 }
 public RestaurantController(IRestaurantRepository restaurantRepository)
 {
     _restaurantRepository = restaurantRepository;
 }
Пример #53
0
 public VisitValidatorFactory(IVisitRepository visitRepository, IRestaurantRepository restaurantRepository, IUserRepository userRepository)
 {
     this.visitRepository      = visitRepository;
     this.restaurantRepository = restaurantRepository;
     this.userRepository       = userRepository;
 }
Пример #54
0
 public StaffInfoController(IRestaurantRepository contactRepository)
 {
     this.repo = contactRepository;
 }
Пример #55
0
 public EditModel(IRestaurantRepository restaurantRepository, IHtmlHelper htmlHelper)
 {
     this.restaurantRepository = restaurantRepository;
     this.htmlHelper           = htmlHelper;
 }
Пример #56
0
 public RestaurantController(IRestaurantRepository restaurantRepository)
 {
     _restaurantRepository = restaurantRepository;
 }
Пример #57
0
 public RestaurantService(IRestaurantRepository repository)
 {
     Repository = repository;
 }