Exemplo n.º 1
0
 public IActionResult Put(int id, [FromBody] Comment comment)
 {
     if (_commentRepository.Update(id, comment))
     {
         return(Ok());
     }
     else
     {
         return(NotFound());
     }
 }
Exemplo n.º 2
0
 public IActionResult Put(int id, [FromBody] Reply reply)
 {
     if (_replyRepository.Update(id, reply))
     {
         return(Ok());
     }
     else
     {
         return(NotFound());
     }
 }
Exemplo n.º 3
0
 public IActionResult Put(int id, [FromBody] Booking booking)
 {
     if (_bookingRepository.Update(id, booking))
     {
         return(Ok());
     }
     else
     {
         return(NotFound());
     }
 }