public TransferManager(IronBankEntities context) { if (context == null) throw new ArgumentNullException("TransferManager: context can not be null."); db = context; productsManager = new ProductService(db); transactionManager = new TransactionService(db); }
public ActionResult Index(string id) { var tnx = new TransactionService(db).GetByProductAccount(id); return View(tnx ); }