Exemplo n.º 1
0
        public ActionResult AllVouchers()
        {
            CinemaWebServiceClient client = new CinemaWebServiceClient();

            voucher[] v = client.getAllVouchers();

            return(View(v));
        }
Exemplo n.º 2
0
        protected void Application_Start()
        {
            CinemaWebServiceClient client = new CinemaWebServiceClient();

            GlobalVariables.VoucherList = new List <voucher>(client.getAllVouchers());


            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }