public IActionResult Post([FromBody] Comment comment)
 {
     _commentRepository.Create(comment);
     return(Created("api/Comment", comment));
 }
Beispiel #2
0
 public IActionResult Post([FromBody] Reply reply)
 {
     _replyRepository.Create(reply);
     return(Created("api/Reply", reply));
 }
 public IActionResult Post([FromBody] Booking booking)
 {
     _bookingRepository.Create(booking);
     return(Created("api/Booking", booking));
 }