public SeasonPassPage() { Binding = new SeasonPassViewModel(); InitializeComponent(); BindingContext = Binding; ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationNoInternet, "lost-connection-notification", "_VMIsDeviceOfflineNotification", true); ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationInvalidPass, "invalid-pass-notification", "_VMIsPassOutdatedNotification", false); Binding.InitializeService(); }
public ActionResult SkiPassOptions(string resort) { List <SeasonPass> passList = null; foreach (SkiResort resort1 in resortList) { if (resort1.Name == resort) { passList = resort1.PassList; SeasonPassViewModel model = new SeasonPassViewModel(resort, passList); return(View(model)); } } ViewBag.resort = resort; return(View("ResortNotFound")); }