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