예제 #1
0
 [HttpDelete("{id}")] // DELETE
 public ActionResult <Rental> Delete(int id)
 {
     try
     {
         return(Ok(_service.Delete(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }