예제 #1
0
파일: HomeController.cs 프로젝트: varleg/Vy
        public ActionResult Index()
        {
            if (Session["Bestilling"] == null)
            {
                Session["Bestilling"] = new Bestilling();
            }
            if (Session["Handlekurv"] == null)
            {
                Session["Handlekurv"] = new Model.Handlekurv();
            }
            //Eksempeldata
            //VyDbTilgang dbt = new VyDbTilgang();
            //dbt.addPassasjertyper();
            //dbt.ByggBanedata();
            //dbt.addPris();
            HomeMethods hmt = new HomeMethods();

            ViewBag.Stasjoner = hmt.StasjonsNavn();
            return(View());
        }