Esempio n. 1
0
        public ActionResult <Drone> Delete(int id)
        {
            try
            {
                return(Ok(_droneService.Delete(id)));
            }

            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }
Esempio n. 2
0
        public async Task <ActionResult> Delete(int id)
        {
            await _service.Delete(id);

            return(Ok());
        }