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