Example #1
0
        public DashboardInfoViewModel HentDashboardInfo()
        {
            var dashBoard = new DashboardInfoViewModel
            {
                TotaltSalg   = _dbOrdre.HentTotaltSalg(),
                AntallKunder = _dbKunde.HentAlle(0).Count(),
                AntallFilmer = _dbFilm.HentAlle().Count()
            };

            return(dashBoard);
        }
Example #2
0
 public List <Film> HentAlle()
 {
     return(_dbFilm.HentAlle());
 }