public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Quantity,PurchaseDate,PurchasePrice,CurrentPrice,Commission,CreditQuality,MaturityDate,Coupon,CurrencyType")] FixedIncome fixedIncome) { if (id != fixedIncome.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(fixedIncome); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FixedIncomeExists(fixedIncome.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(fixedIncome)); }
protected override object RequestComAddInAutomationService() { if (FI == null) { FI = new FixedIncome(); } return(FI); }
public async Task <IActionResult> Create([Bind("Id,Name,Quantity,PurchaseDate,PurchasePrice,CurrentPrice,Commission,CreditQuality,MaturityDate,Coupon,CurrencyType")] FixedIncome fixedIncome) { if (ModelState.IsValid) { _context.Add(fixedIncome); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(fixedIncome)); }
public override void TradeOrder(FixedIncome fixedIncome) { Console.WriteLine(this.GetType().Name + " trades " + fixedIncome.GetType().Name); }
public abstract void TradeOrder(FixedIncome fixedIncome);
public OrderManager(AssetClassFactory factory) { // TODO: Complete member initialization _equity = factory.CreateEquityOrder(); _fixedIncome = factory.CreateFixedOrder(); }