public async Task <IActionResult> Edit(int id, [Bind("ID,Name,StatusFlag,LastUpdate")] MFundFlowType mFundFlowType) { if (id != mFundFlowType.ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(mFundFlowType); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!MFundFlowTypeExists(mFundFlowType.ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(mFundFlowType)); }
public async Task <IActionResult> Create([Bind("ID,Name,StatusFlag,LastUpdate")] MFundFlowType mFundFlowType) { if (ModelState.IsValid) { _context.Add(mFundFlowType); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(mFundFlowType)); }
// GET: MFundFlowTypes/Create public IActionResult Create() { var _mFundFlowTYpe = new MFundFlowType(); return(View(_mFundFlowTYpe)); }