Пример #1
0
        public static string selectedRecommended(int letterForProf, int profession, int area, int city)
        {
            string result = "";
            List <Professionals> Professionals = RecommendationService.GetFilteredProfessionals(letterForProf, profession, area, city);
            int i = 1;

            Professionals.ForEach(c => { result += $"מומלץ{i++}{c.FirstName}{c.LastName}כתובת{c.Street}{c.NumHouse}{c.Users.City}טלפון{c.Users.UserPhone}מייל{c.Users.UserEmail}"; });
            return(result);
        }
Пример #2
0
        public static string selectedCities(int area)
        {
            string        result = "";
            int           i      = 1;
            List <Cities> cities = RecommendationService.GetCitiesByArea(area);

            cities.ForEach(c => { result += $"לעיר{c.CityName}הקש{i++}"; });
            return(result);
        }
Пример #3
0
        static void Main(string[] args)
        {
            BeerRepository   br = new BeerRepository();
            TagRepository    tr = new TagRepository();
            RegionRepository rr = new RegionRepository();
            var region          = rr.RetrieveAll().Take(1).First();
            var popularBeers    = BeerService.GetPopularBeers().Take(3).ToList();

            Console.WriteLine("Your picked beers were:");
            popularBeers.ForEach(b => Console.WriteLine(b.Name));

            Console.WriteLine();
            Console.WriteLine("Our recommendation is:");
            var finalyDone = RecommendationService.Recommend(popularBeers, 10 /*, region*/);

            var fD = RecommendationService.RecommendBeersCombined(popularBeers, 5);

            finalyDone.ForEach(x => Console.WriteLine(x.Name));
            Console.ReadKey();
        }