// GET: GetInActiveRestaurants public ActionResult GetInActiveRestaurants() { ViewBag.Header = "List Of Inactive Restaurants"; var restaurants = new RestaurantFactory().GetListOfRestaurants(); return(View("Index", restaurants.Where(n => n.SubscriptonEndDate < DateTime.Now))); }
public Cheff(RestaurantFactory restaurantFactory) { this.restaurantFactory = restaurantFactory; this.soup = restaurantFactory.CreateSoup(); this.meal = restaurantFactory.CreateMeal(); this.dessert = restaurantFactory.CreateDessert(); }
// GET: RestaurantsByCategory public ActionResult GetRestaurantsByCategory() { var restaurants = new RestaurantFactory().GetListOfRestaurants(); return(View("Index", restaurants)); }