Пример #1
0
 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);
 }
Пример #2
0
 public ActionResult Index(string id)
 {
     var tnx = new TransactionService(db).GetByProductAccount(id);
     return View(tnx
         );
 }