コード例 #1
0
 public IActionResult Delete(int id)
 {
     try
     {
         var CancelTicket = ticketRepository.CancelTicket(id);
         if (CancelTicket == null)
         {
             return(NotFound("No such id present"));
         }
         return(Ok(CancelTicket));
     }
     catch
     {
         return(BadRequest("Link Failure"));
     }
 }