Пример #1
0
 public IActionResult Post([FromBody] Comment comment)
 {
     _commentRepository.Create(comment);
     return(Created("api/Comment", comment));
 }
Пример #2
0
 public IActionResult Post([FromBody] Reply reply)
 {
     _replyRepository.Create(reply);
     return(Created("api/Reply", reply));
 }
Пример #3
0
 public IActionResult Post([FromBody] Booking booking)
 {
     _bookingRepository.Create(booking);
     return(Created("api/Booking", booking));
 }