예제 #1
0
 public ActionResult <String> Delete(string id)
 {
     try
     {
         return(Ok(_CS.Delete(id)));
     }
     catch (Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
예제 #2
0
 public ActionResult <Cruise> Delete(int id)
 {
     try
     {
         return(Ok(_cruisesService.Delete(id)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
예제 #3
0
 [HttpDelete("{id}")] // DELETE
 public ActionResult <Cruise> Delete(int id)
 {
     try
     {
         return(Ok(_service.Delete(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }