public EmployeesController(DemoApiContext context) { _context = context; }
public GenericRepository() { context = new DemoApiContext(); entity = context.Set <T>(); }
public DepartmentsController(DemoApiContext context) { _context = context; }
public EmployeesController(DemoApiContext context) { _context = context; }
public GenericRepository() { context = new DemoApiContext(); entity = context.Set <T>(); }
public DepartmentsController(DemoApiContext context) { _context = context; }