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())); }
public IActionResult EnterBoMon() { StoreContext context = HttpContext.RequestServices.GetService(typeof(firstWeb.Models.StoreContext)) as StoreContext; return(View(context.GetKhoas())); }