public async Task <IActionResult> Edit(int id, [Bind("Id,TransactionDate,Code,Notes")] FeeItem feeItem) { if (id != feeItem.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(feeItem); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FeeItemExists(feeItem.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(feeItem)); }
public async Task <IActionResult> Create([Bind("Id,TransactionDate,Code,Notes")] FeeItem feeItem) { if (ModelState.IsValid) { _context.Add(feeItem); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(feeItem)); }
public FeeItem UpdateFeeItem(FeeItem feeItem) { return(Channel.UpdateFeeItem(feeItem)); }
public ActionResult UpdateFeeItem(FeeItem feeItem) { return(Json(feeItemService.Update(feeItem))); }
public ActionResult AddFeeItem(FeeItem feeItem) { return(Json(feeItemService.Add(feeItem))); }