Example #1
0
        public IActionResult LietKeKhoa()
        {
            StoreContext context = HttpContext.RequestServices.GetService(typeof(firstWeb.Models.StoreContext)) as StoreContext;

            //StoreContext context = new StoreContext("server=127.0.0.1;user id=root;password=;port=3306;database=qlsv;");
            return(View(context.GetKhoas()));
        }
Example #2
0
        public IActionResult EnterBoMon()
        {
            StoreContext context = HttpContext.RequestServices.GetService(typeof(firstWeb.Models.StoreContext)) as StoreContext;

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