コード例 #1
0
        public ActionResult <Drone> Delete(int id)
        {
            try
            {
                return(Ok(_droneService.Delete(id)));
            }

            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }
コード例 #2
0
        public async Task <ActionResult> Delete(int id)
        {
            await _service.Delete(id);

            return(Ok());
        }