public SuppliersService(IBaseService <damco_supplier> damcoSupplierRepository, IBaseService <damco_supplier_rate> damcoSupplierRateRepository, DamcoContext context) { _damcoSupplierRepository = damcoSupplierRepository; _damcoSupplierRateRepository = damcoSupplierRateRepository; _context = context; }
public BaseService(DamcoContext context) { this.context = context; entities = context.Set <T>(); }