public UnitOfWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(_db); Frequency = new FrequencyRepository(_db); Service = new ServiceRepository(_db); OrderHeader = new OrderHeaderRepository(_db); OrderDetails = new OrderDetailsRepository(_db); User = new UserRepository(_db); StoreProcedureCall = new StoreProcedureCall(_db); Location = new LocationRepository(_db); Province = new ProvinceRepository(_db); District = new DistrictRepository(_db); Ward = new WardRepository(_db); LocationType = new LocationTypeRepository(_db); UserAddress = new UserAddressRepository(_db); WebImages = new WebImagesRepository(_db); }