public AdminPannelModel(DataBaseContext _context, IConfiguration _configuration) { context = _context; configuration = _configuration; if (LastUpdate == null) { LastUpdate = DateTime.Now; } else { if (LastUpdate.AddHours(2) < DateTime.Now) { AdminTokens.Clear(); LastUpdate = DateTime.Now; } } }