public ActionResult <Drone> Delete(int id) { try { return(Ok(_droneService.Delete(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public async Task <ActionResult> Delete(int id) { await _service.Delete(id); return(Ok()); }