Exemple #1
0
        public ActionResult Browse(string kategori)
        {
            //return kategori;
            var         vareDb    = new VareBLL();
            List <Vare> alleVarer = vareDb.getAllByCategory(kategori);

            return(View(alleVarer));
        }
        public ActionResult ListByCategory(string kat)
        {
            if (loginCheck() == false)
            {
                return(RedirectToAction("LoggInn"));
            }
            var         vareDb    = new VareBLL();
            List <Vare> alleVarer = vareDb.getAllByCategory(kat);

            return(View(alleVarer));
        }