public async Task <ActionResult <BillItemTaxes> > PostBillItemTaxes(BillItemTaxes billItemTaxes) { _context.BillItemTaxes.Add(billItemTaxes); await _context.SaveChangesAsync(); return(CreatedAtAction("GetBillItemTaxes", new { id = billItemTaxes.Id }, billItemTaxes)); }
public async Task <IActionResult> PutBillItemTaxes(int id, BillItemTaxes billItemTaxes) { if (id != billItemTaxes.Id) { return(BadRequest()); } _context.Entry(billItemTaxes).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BillItemTaxesExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }