Ejemplo n.º 1
0
        public IActionResult Index()
        {
            SakilaContext context = HttpContext.RequestServices.GetService(typeof(Models.SakilaContext)) as SakilaContext;

            return(View("~/Views/Films/Index.cshtml", context.GetAllFilms()));
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            SakilaContext context = HttpContext.RequestServices.GetService(typeof(SakilaContext)) as SakilaContext;

            return(View(context.GetAllFilms()));
        }
Ejemplo n.º 3
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            SakilaContext context = HttpContext.RequestServices.GetService(typeof(EpinDecryptApplication.Models.SakilaContext)) as SakilaContext;

            return(View(context.GetAllFilms()));
        }