Esempio n. 1
0
 private UnitOfWork(POSContext context)
 {
     Employees         = new EmployeeRepository(context);
     Products          = new ProductRepository(context);
     Peoples           = new PeopleRepository(context);
     Roles             = new RoleRepository(context);
     Customers         = new CustomerRepository(context);
     Vendors           = new VendorRepository(context);
     Departments       = new DepartmentRepository(context);
     Groups            = new GroupRepository(context);
     SaleryTypes       = new Repository <SaleryType>(context);
     Menus             = new Repository <Menu>(context);
     ItemDisplayInfoes = new Repository <ItemDisplayInfo>(context);
     Taxes             = new Repository <Tax>(context);
     Orders            = new OrderRepository(context);
     DailyAttendances  = new DailyAttendanceRepository(context);
     _context          = context;
 }
Esempio n. 2
0
 public DailyAttendanceService()
 {
     repository = new DailyAttendanceRepository();
 }