public async Task <IActionResult> Put(Payment payment) { try { _context.Entry(payment).State = EntityState.Modified; _context.SaveChanges(); return(NoContent()); } catch { throw; } }