public IActionResult Index() { SakilaContext context = HttpContext.RequestServices.GetService(typeof(Models.SakilaContext)) as SakilaContext; return(View("~/Views/Films/Index.cshtml", context.GetAllFilms())); }
public IActionResult Index() { SakilaContext context = HttpContext.RequestServices.GetService(typeof(SakilaContext)) as SakilaContext; return(View(context.GetAllFilms())); }
// GET: /<controller>/ public IActionResult Index() { SakilaContext context = HttpContext.RequestServices.GetService(typeof(EpinDecryptApplication.Models.SakilaContext)) as SakilaContext; return(View(context.GetAllFilms())); }