public async Task <IActionResult> Edit(int id, [Bind("Id,Symbol,InitVolume,Tmr,Brk,Distance,IsTrade,IsBreak,IsBrkFirst,Result,Average,Magnify,Sub,Cr,Ca,Sr,Sa,Signal,Signal2")] FrxCbotset frxCbotset) { if (id != frxCbotset.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(frxCbotset); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FrxCbotsetExists(frxCbotset.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(PartialView("~/Areas/Forex/Views/FrxCbotset/CreateEdit.cshtml", frxCbotset)); }
public async Task <IActionResult> Create([Bind("Id,Symbol,InitVolume,Tmr,Brk,Distance,IsTrade,IsBreak,IsBrkFirst,Result,Average,Magnify,Sub,Cr,Ca,Sr,Sa,Signal,Signal2")] FrxCbotset frxCbotset) { if (ModelState.IsValid) { _context.Add(frxCbotset); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(PartialView("~/Areas/Forex/Views/FrxCbotset/CreateEdit.cshtml", frxCbotset)); }