public HttpResponseMessage getDrones(int id)
    {
        var drone = DroneDTO.CreateFromQuery(db.drones.Where(d => d.iddrone == id));
        HttpResponseMessage res = Request.CreateResponse(HttpStatusCode.OK, drone);

        return(res);
    }
    public HttpResponseMessage getDrones()
    {
        var drones = DroneDTO.CreateFromQuery(db.drones);
        HttpResponseMessage res = Request.CreateResponse(HttpStatusCode.OK, drones);

        return(res);
    }