public async Task <ActionResult <Csaorder> > Post([FromBody] Csaorder order) { _db.Csaorder.Add(order); await _db.SaveChangesAsync(); return(Created("Created Order", order)); }
public async Task <ActionResult <Customer> > Post([FromBody] Customer customer) { _db.Customer.Add(customer); await _db.SaveChangesAsync(); return(Created("Created customer", customer)); }
public async Task<ActionResult<Feedback>> Post([FromBody] Feedback fb) { _db.Feedback.Add(fb); await _db.SaveChangesAsync(); return Created("Created feedback", fb); }