public UnitOfWork(SmartAccountContext context) { _context = context; AccountMasters = new AccountMasterRepository(_context); BillDetails = new BillDetailRepository(_context); BillMasters = new BillMasterRepository(_context); CgstMasters = new CgstMasterRepository(_context); Companies = new CompanyRepository(_context); Ledgers = new LedgerRepository(_context); SgstMasters = new SgstMasterRepository(_context); IgstMasters = new IgstMasterRepository(_context); TransactionMasters = new TransactionMasterRepository(_context); TypeMasters = new TypeMasterRepository(_context); Users = new UserRepository(_context); VoucherDetails = new VoucherDetailRepository(_context); VoucherMasters = new VoucherMasterRepository(_context); }
public TransactionMasterService(SmartAccountContext context, IMapper mapper) { _context = context; _mapper = mapper; }