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

            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }