示例#1
0
        private string BotImageForFoodType(string type)
        {
            string foodTypeImage;

            switch (type.ToLower())
            {
            case "chinese":
                foodTypeImage = RestaurantImages.CuisinesChinese;
                break;

            case "german":
                foodTypeImage = RestaurantImages.CuisinesGerman;
                break;

            case "indian":
                foodTypeImage = RestaurantImages.CuisinesIndian;
                break;

            case "italian":
                foodTypeImage = RestaurantImages.CuisinesItalian;
                break;

            default:
                foodTypeImage = RestaurantImages.FaqBlank;
                break;
            }

            return(_urlResolver.GetImageUrl(foodTypeImage));
        }
 private static void PopulateIndianRestaurants(string location, List <BookingPlace> list)
 {
     list.Add(new BookingPlace
     {
         Location   = location,
         Name       = "Biryani House",
         PictureUrl = _urlResolver.GetImageUrl(RestaurantImages.RestaurantsBiryaniHouse),
         Category   = "Indian"
     });
     list.Add(new BookingPlace
     {
         Location   = location,
         Name       = "Kanishka Cuisine",
         PictureUrl = _urlResolver.GetImageUrl(RestaurantImages.RestaurantsKanishkaCuisine),
         Category   = "Indian"
     });
     list.Add(new BookingPlace
     {
         Location   = location,
         Name       = "Mayuri Indian",
         PictureUrl = _urlResolver.GetImageUrl(RestaurantImages.RestaurantsMaharaniInside),
         Category   = "Indian"
     });
 }