コード例 #1
0
        public async Task <ActionResult <Csaorder> > Post([FromBody] Csaorder order)
        {
            _db.Csaorder.Add(order);
            await _db.SaveChangesAsync();

            return(Created("Created Order", order));
        }
コード例 #2
0
        public async Task <ActionResult <Customer> > Post([FromBody] Customer customer)
        {
            _db.Customer.Add(customer);
            await _db.SaveChangesAsync();

            return(Created("Created customer", customer));
        }
コード例 #3
0
 public async Task<ActionResult<Feedback>> Post([FromBody] Feedback fb)
 {
     _db.Feedback.Add(fb);
     await _db.SaveChangesAsync();
     return Created("Created feedback", fb);
 }