public async Task <IActionResult> EditRefFee(int id, [Bind("Id,Category,UDZ,HD,LD")] RefFees refFees) { if (id != refFees.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(refFees); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RefFeesExists(refFees.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(IndexRefFees))); } return(View(refFees)); }
public async Task <IActionResult> CreateRefFee([Bind("Id,Category,UDZ,HD,LD")] RefFees refFees) { if (ModelState.IsValid) { _context.Add(refFees); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(IndexRefFees))); } return(View(refFees)); }