public HomeController(StudentMngContext context) { unit = new UnitOfWork(context); }
//public StudentRepository() // : this(new StudentMngContext()) //{ //} public StudentRepository(StudentMngContext context) { this.context = context; }
//public UnitOfWork() //{ // context = new StudentMngContext(); //} public UnitOfWork(StudentMngContext _context) { this.context = _context; }
//public CourseRepository() // : this(new StudentMngContext()) //{ //} public CourseRepository(StudentMngContext context) { this.context = context; }