/*
         *
         * private readonly ApplicationDbContext _db;
         * public DOAController(ApplicationDbContext db)
         * {
         *  _db = db;
         * }
         *
         */


        public async Task <IActionResult> Index()
        {
            var myDays = await _dayService.DisplayAllDays();

            // var myDays = await _db.AllDaysFromDb.ToArrayAsync();
            var model = new DayViewModel()
            {
                AllDays = myDays
            };

            return(View(model));
        }