public IndexModel(ILogger <IndexModel> logger, IMemoryCache cache) { this.cache = cache; _logger = logger; action = new MovieActions((List <Movie>)cache.Get("dtset")); }
public DetailsModel(IMemoryCache cache) { this.cache = cache; action = new MovieActions((List <Movie>)cache.Get("dtset")); }
public CreateModel(IMemoryCache cache) { this.cache = cache; action = new MovieActions((List <Movie>)cache.Get("dtset")); count = (int)cache.Get("count"); }