public IActionResult Index() { MVCEFCoreContext db = new MVCEFCoreContext(); HttpContext.Session.GetObject <dynamic>("CurrentUser"); return(Json(db.Employees.ToList())); }
public EmployeeRepo(MVCEFCoreContext context) : base(context) { }
public GenericRepository(MVCEFCoreContext context) { this.context = context; dbset = context.Set <T>(); }
public UnitOfWork(IEmployeeRepo employeeRepo, MVCEFCoreContext db) { _employeeRepo = employeeRepo; _db = db; }
public UnitOfWorkService(MVCEFCoreContext context) { _dbContext = context; }