示例#1
0
 public IActionResult Post(Coffee coffee)
 {
     _coffeeRepository.AddCoffee(coffee);
     return(CreatedAtAction("Get", new { id = coffee.Id }, coffee));
 }